Pedro Lacerda added the comment:
Seems that ``token.has_fws`` evaluates to True in the following condition
if token.has_fws:
causing ``token._fold(self)`` where isn't needed and raising the exception.
Hope it helps!
By the way, why the _header_value_parser.py was removed from the repository?
https://github.com/python/cpython/blob/master/Lib/email/_header_value_parser.py#L144
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue27258>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com