[1.11.x] Corrected http.multipartparser.exhaust() docstring.
MultiPartParserError was removed inebf34c3cdc
. Backport of90db4bb0d7
from master
This commit is contained in:
parent
ec0af19f4c
commit
9194df2f55
|
@ -573,11 +573,7 @@ class BoundaryIter(six.Iterator):
|
|||
|
||||
|
||||
def exhaust(stream_or_iterable):
|
||||
"""
|
||||
Completely exhausts an iterator or stream.
|
||||
|
||||
Raise a MultiPartParserError if the argument is not a stream or an iterable.
|
||||
"""
|
||||
"""Exhaust an iterator or stream."""
|
||||
try:
|
||||
iterator = iter(stream_or_iterable)
|
||||
except TypeError:
|
||||
|
|
Loading…
Reference in New Issue