_parsegen(): Add a missing check for NeedMoreData.

This commit is contained in:
Barry Warsaw 2004-05-15 16:26:28 +00:00
parent 97b6484dc4
commit e4aeb7d1f1
1 changed files with 3 additions and 0 deletions

View 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)