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 serhiy.storchaka
Recipients barry, janmalte, labrat, pas, r.david.murray, serhiy.storchaka
Date 2015-10-19.21:05:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445288722.11.0.864857144296.issue22684@psf.upfronthosting.co.za>
In-reply-to
Content
Even more minimized artificial example:

from email._header_value_parser import *
import email.policy
tl = TokenList([
    TokenList([
        ValueTerminal('x', 'atext'),
        WhiteSpaceTerminal(' ', 'fws'),
        ValueTerminal('x'*76, 'atext'),
    ]),
    ValueTerminal(',', 'list-separator')
])
tl.fold(policy=email.policy.default)

list(tl.parts)[0] == tl and tl.has_fws is True, so TokenList._fold() is called recursively with the same argument.
History
Date User Action Args
2015-10-19 21:05:22serhiy.storchakasetrecipients: + serhiy.storchaka, barry, r.david.murray, labrat, pas, janmalte
2015-10-19 21:05:22serhiy.storchakasetmessageid: <1445288722.11.0.864857144296.issue22684@psf.upfronthosting.co.za>
2015-10-19 21:05:22serhiy.storchakalinkissue22684 messages
2015-10-19 21:05:21serhiy.storchakacreate