Commit e4aeb7d1 authored by Barry Warsaw's avatar Barry Warsaw

_parsegen(): Add a missing check for NeedMoreData.

parent 97b6484d
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment