This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:09eric.araujosetrecipients: + eric.araujo, r.david.murray
2012-03-17 15:54:09eric.araujosetmessageid: <1331999649.16.0.86257584064.issue14344@psf.upfronthosting.co.za>
2012-03-17 15:54:08eric.araujolinkissue14344 messages
2012-03-17 15:54:08eric.araujocreate