From 90db4bb0d72e4731052bd33500840fff00834768 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 25 Jan 2017 13:00:00 -0500 Subject: [PATCH] Corrected http.multipartparser.exhaust() docstring. MultiPartParserError was removed in ebf34c3cdcd2c75349c60a064427ac255958bf9b. --- django/http/multipartparser.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/django/http/multipartparser.py b/django/http/multipartparser.py index adb4e08dbe..5f08924df2 100644 --- a/django/http/multipartparser.py +++ b/django/http/multipartparser.py @@ -566,11 +566,7 @@ class BoundaryIter: 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: