mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
_parsegen(): Add a missing check for NeedMoreData.
This commit is contained in:
parent
97b6484dc4
commit
e4aeb7d1f1
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue