diff options
author | Barry Warsaw <barry@python.org> | 2004-05-15 16:26:28 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2004-05-15 16:26:28 (GMT) |
commit | e4aeb7d1f1e1029133b2c722bd239a8cc18e8f47 (patch) | |
tree | 93da07643baf390c48450db0958f0ad825b69441 /Lib/email | |
parent | 97b6484dc4290479db0ab29520bb1324d440b5fc (diff) | |
download | cpython-e4aeb7d1f1e1029133b2c722bd239a8cc18e8f47.zip cpython-e4aeb7d1f1e1029133b2c722bd239a8cc18e8f47.tar.gz cpython-e4aeb7d1f1e1029133b2c722bd239a8cc18e8f47.tar.bz2 |
_parsegen(): Add a missing check for NeedMoreData.
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/FeedParser.py | 3 |
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) |