[issue34102] local variable 'parts' referenced before assignment in feedparser in email module

Karthikeyan Singaravelan report at bugs.python.org
Thu Jul 12 09:23:58 EDT 2018


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

Hi,

I couldn't see the print statement in Lib/email/feedparser.py with latest 2.7 branch and also `git log -p Lib/email/feedparser.py | grep print` doesn't return me anything. `pip install ansible-lint` also works fine with Python 2.7. I think this statement was added by mistake for debugging by the developer before `parts = data.splitlines(True)`. Can you please point me to the commit where the print statement was added or a test case to reproduce this?

Thanks

----------
nosy: +xtreak

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34102>
_______________________________________


More information about the Python-bugs-list mailing list