消息 [132389]
I incorporated that change as well. My rationale behind the previous version was to be consistent with how Lib/email/header.py handled this, unfortunately I did not look around in the other classes and didn't think about that kind of compatibility.
When formataddr() is called with a object which is not a string and which does not have a header_encode it will raise the following exception now:
> AttributeError: 'CharsetMock' object has no attribute 'header_encode'
Thank you for your patience, sorry that it took probably more of your time by taking 4 iterations for this patch than if you had just implemented it yourself. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2011-03-28 09:56:58 | torsten.becker | 修改 | recipients:
+ torsten.becker, barry, terry.reedy, r.david.murray |
| 2011-03-28 09:56:57 | torsten.becker | 修改 | messageid: <1301306217.74.0.881573669965.issue1690608@psf.upfronthosting.co.za> |
| 2011-03-28 09:56:56 | torsten.becker | 链接 | issue1690608 messages |
| 2011-03-28 09:56:56 | torsten.becker | 创建 | |
|