_parsegen(): Add a missing check for NeedMoreData.
This commit is contained in:
parent
97b6484dc4
commit
e4aeb7d1f1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue