diff options
| author | Mads Jensen <mje@inducks.org> | 2017-01-25 15:14:05 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-25 09:15:36 -0500 |
| commit | c94cb4f86541d8f76ee27652e214fedd0c0920fe (patch) | |
| tree | 93603bde283d50a96c0f3a87c92399ca8da55b8b /django/http/multipartparser.py | |
| parent | a69fc396e47cea763401eaaab92e11a5343e7d3e (diff) | |
[1.11.x] Removed unused variables that are overwritten.
Backport of ebf34c3cdcd2c75349c60a064427ac255958bf9b from master
Diffstat (limited to 'django/http/multipartparser.py')
| -rw-r--r-- | django/http/multipartparser.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/django/http/multipartparser.py b/django/http/multipartparser.py index 616185f021..cf82e3851e 100644 --- a/django/http/multipartparser.py +++ b/django/http/multipartparser.py @@ -578,15 +578,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 |
