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:14:05 -0500 |
| commit | ebf34c3cdcd2c75349c60a064427ac255958bf9b (patch) | |
| tree | 7d6289bf88b5c9dc8ccb5b7c245d6cc46c005dd0 /django/http | |
| parent | 5890d6ab03ebc7dac46ce7d9540b5768785caa34 (diff) | |
Removed unused variables that are overwritten.
Diffstat (limited to 'django/http')
| -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 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 |
