summaryrefslogtreecommitdiff
path: root/django/http
diff options
context:
space:
mode:
authorMads Jensen <mje@inducks.org>2017-01-25 15:14:05 +0100
committerTim Graham <timograham@gmail.com>2017-01-25 09:14:05 -0500
commitebf34c3cdcd2c75349c60a064427ac255958bf9b (patch)
tree7d6289bf88b5c9dc8ccb5b7c245d6cc46c005dd0 /django/http
parent5890d6ab03ebc7dac46ce7d9540b5768785caa34 (diff)
Removed unused variables that are overwritten.
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