mirror of
https://github.com/django/django.git
synced 2025-06-16 08:59:17 +00:00
Corrected http.multipartparser.exhaust() docstring.
MultiPartParserError was removed in ebf34c3cdcd2c75349c60a064427ac255958bf9b.
This commit is contained in:
parent
d6eaf7c018
commit
90db4bb0d7
@ -566,11 +566,7 @@ class BoundaryIter:
|
|||||||
|
|
||||||
|
|
||||||
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user