Message156162
| Author |
eric.araujo |
| Recipients |
eric.araujo, r.david.murray |
| Date |
2012年03月17日.15:54:08 |
| SpamBayes Score |
0.0028416042 |
| Marked as misclassified |
No |
| Message-id |
<1331999649.16.0.86257584064.issue14344@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I don’t understand why the repr should use \\r instead of \r. It seems to work:
>>> from email.policy import Policy, HTTP, strict
>>> strict
Policy(raise_on_defect=True)
>>> eval(repr(strict))
Policy(raise_on_defect=True)
>>> HTTP
Policy(linesep='\r\n', max_line_length=None)
>>> eval(repr(HTTP))
Policy(linesep='\r\n', max_line_length=None)
>>> HTTP.__dict__
{'max_line_length': None, 'linesep': '\r\n'}
>>> eval(repr(HTTP)).__dict__
{'max_line_length': None, 'linesep': '\r\n'} |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年03月17日 15:54:09 | eric.araujo | set | recipients:
+ eric.araujo, r.david.murray |
| 2012年03月17日 15:54:09 | eric.araujo | set | messageid: <1331999649.16.0.86257584064.issue14344@psf.upfronthosting.co.za> |
| 2012年03月17日 15:54:08 | eric.araujo | link | issue14344 messages |
| 2012年03月17日 15:54:08 | eric.araujo | create |
|