[1.11.x] Corrected http.multipartparser.exhaust() docstring.

MultiPartParserError was removed in
ebf34c3cdc.

Backport of 90db4bb0d7 from master
This commit is contained in:
Tim Graham 2017-01-25 13:00:00 -05:00
parent ec0af19f4c
commit 9194df2f55
1 changed files with 1 additions and 5 deletions

View File

@ -573,11 +573,7 @@ class BoundaryIter(six.Iterator):
def exhaust(stream_or_iterable): def exhaust(stream_or_iterable):
""" """Exhaust an iterator or stream."""
Completely exhausts an iterator or stream.
Raise a MultiPartParserError if the argument is not a stream or an iterable.
"""
try: try:
iterator = iter(stream_or_iterable) iterator = iter(stream_or_iterable)
except TypeError: except TypeError: