mirror of
https://github.com/Hopiu/django.git
synced 2026-04-25 17:24:49 +00:00
Corrected http.multipartparser.exhaust() docstring.
MultiPartParserError was removed in
ebf34c3cdc.
This commit is contained in:
parent
d6eaf7c018
commit
90db4bb0d7
1 changed files with 1 additions and 5 deletions
|
|
@ -566,11 +566,7 @@ class BoundaryIter:
|
|||
|
||||
|
||||
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 a new issue