[issue27258] Exception in BytesGenerator.flatten

Pedro Lacerda report at bugs.python.org
Sat Jun 18 00:18:24 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue27258>
_______________________________________


More information about the Python-bugs-list mailing list