summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2004-05-15 16:26:28 (GMT)
committerBarry Warsaw <barry@python.org>2004-05-15 16:26:28 (GMT)
commite4aeb7d1f1e1029133b2c722bd239a8cc18e8f47 (patch)
tree93da07643baf390c48450db0958f0ad825b69441 /Lib
parent97b6484dc4290479db0ab29520bb1324d440b5fc (diff)
downloadcpython-e4aeb7d1f1e1029133b2c722bd239a8cc18e8f47.zip
cpython-e4aeb7d1f1e1029133b2c722bd239a8cc18e8f47.tar.gz
cpython-e4aeb7d1f1e1029133b2c722bd239a8cc18e8f47.tar.bz2
_parsegen(): Add a missing check for NeedMoreData.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/email/FeedParser.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/email/FeedParser.py b/Lib/email/FeedParser.py
index ac3769d..af0e177 100644
--- a/Lib/email/FeedParser.py
+++ b/Lib/email/FeedParser.py
@@ -314,6 +314,9 @@ class FeedParser:
# body parts within such double boundaries.
while True:
line = self._input.readline()
+ if line is NeedMoreData:
+ yield NeedMoreData
+ continue
mo = boundaryre.match(line)
if not mo:
self._input.unreadline(line)