summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-25 13:00:00 -0500
committerTim Graham <timograham@gmail.com>2017-01-25 13:40:17 -0500
commit9194df2f5593c26c265826458e845dc028fe2530 (patch)
tree4740bd0dedda27c70d980a591be6fa895dbd8fda
parentec0af19f4c9c845ff1ce376c83853ae9345205ca (diff)
[1.11.x] Corrected http.multipartparser.exhaust() docstring.
MultiPartParserError was removed in ebf34c3cdcd2c75349c60a064427ac255958bf9b. Backport of 90db4bb0d72e4731052bd33500840fff00834768 from master
-rw-r--r--django/http/multipartparser.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/django/http/multipartparser.py b/django/http/multipartparser.py
index cf82e3851e..d9e7e4313f 100644
--- a/django/http/multipartparser.py
+++ b/django/http/multipartparser.py
@@ -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: