summaryrefslogtreecommitdiff
path: root/django/http
diff options
context:
space:
mode:
Diffstat (limited to 'django/http')
-rw-r--r--django/http/multipartparser.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/django/http/multipartparser.py b/django/http/multipartparser.py
index 6a0ff2c86c..adb4e08dbe 100644
--- a/django/http/multipartparser.py
+++ b/django/http/multipartparser.py
@@ -571,15 +571,11 @@ def exhaust(stream_or_iterable):
Raise a MultiPartParserError if the argument is not a stream or an iterable.
"""
- iterator = None
try:
iterator = iter(stream_or_iterable)
except TypeError:
iterator = ChunkIter(stream_or_iterable, 16384)
- if iterator is None:
- raise MultiPartParserError('multipartparser.exhaust() was passed a non-iterable or stream parameter')
-
for __ in iterator:
pass