]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
_parsegen(): Add a missing check for NeedMoreData.
authorBarry Warsaw <barry@python.org>
Sat, 15 May 2004 16:26:28 +0000 (16:26 +0000)
committerBarry Warsaw <barry@python.org>
Sat, 15 May 2004 16:26:28 +0000 (16:26 +0000)
Lib/email/FeedParser.py

index ac3769d4b252d206bc3c5eff4d3c566bb3c53d0c..af0e177d561f2d5c3e936fa8797e0fa8c9336ed3 100644 (file)
@@ -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)