Issue 36711: duplicate method definition in Lib/email/feedparser.py (original) (raw)
This is caused by Serhiy’s first change to 2.7 in Issue 21448. Compare Mercurial rev. 1b1f92e39462 (3.4 branch) with ba90bd01c5f1 (2.7). In 2.7, he applied the Python 3 version of the code, which used “str.splitlines” rather than a regular expression “NLCRE_crack.split”. This seems reasonable, but the old Python 2 code remains under a spurious “def pushlines” block.
I think that first block of “pushlines” can safely be removed, just leaving the second version, a single line of code like in Python 3.