From: Barry Warsaw Date: Sat, 15 May 2004 16:26:28 +0000 (+0000) Subject: _parsegen(): Add a missing check for NeedMoreData. X-Git-Tag: v2.4a1~371 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4aeb7d1f1e1029133b2c722bd239a8cc18e8f47;p=thirdparty%2FPython%2Fcpython.git _parsegen(): Add a missing check for NeedMoreData. --- diff --git a/Lib/email/FeedParser.py b/Lib/email/FeedParser.py index ac3769d4b252..af0e177d561f 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)