Mercurial > cpython-lru_cache-weakref
diff Lib/email/parser.py @ 47635:f31e32a2013c
Patch for issue 2848, mostly by Humberto Diogenes, with a couple of
small fixes by Barry. This removes mimetools from the stdlib.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Thu, 12 Jun 2008 04:06:45 +0000 |
| parents | d5f3c2f416f2 |
| children | 1a041f364916 |
line wrap: on
line diff
--- a/Lib/email/parser.py Thu Jun 12 03:10:02 2008 +0000 +++ b/Lib/email/parser.py Thu Jun 12 04:06:45 2008 +0000 @@ -68,11 +68,7 @@ data = fp.read(8192) if not data: break - # XXX When Guido fixes TextIOWrapper.read() to act just like - # .readlines(), this... - feedparser.feed(str(data)) - # ...gets reverted back to - #feedparser.feed(data) + feedparser.feed(data) return feedparser.close() def parsestr(self, text, headersonly=False):
