[issue23745] Exception when parsing an email using email.parser.BytesParser

2015-03-29 Thread R. David Murray
R. David Murray added the comment: The issue arose from the duplicated parameter name. I fixed it by (mostly) copying the error recovery used by the older api (get_param). Note that you don't need to specify both policy and _class. If you use the new policies (such as default), it automatica

[issue23745] Exception when parsing an email using email.parser.BytesParser

2015-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset dc10c52c6539 by R David Murray in branch '3.4': #23745: handle duplicate MIME parameter names in new parser. https://hg.python.org/cpython/rev/dc10c52c6539 New changeset fe9a578d5f38 by R David Murray in branch 'default': Merge: #23745: handle dupli

[issue23745] Exception when parsing an email using email.parser.BytesParser

2015-03-23 Thread Elmer
New submission from Elmer: I am working with a large dataset of emails and loading one of them resulted in an exception: "TypeError: unorderable types: ValueTerminal() < CFWSList()" I have attached the (anonymised and minimised) email source of the email that triggered the exception. $ python