summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2017-09-22 16:47:14 +0200
committerTim Graham <timograham@gmail.com>2017-09-22 10:47:14 -0400
commit3f9d85d95cab228fd881ea952c707022e9e3bdf3 (patch)
tree4c9552c33e486deab1edc7bd8099a182110e60d2
parent6f7279c4b1db894eb431c182ea9df5d665b3f726 (diff)
Removed unused eof argument to BoundaryIter._find_boundary().
Unused since its introduction in d725cc9734272f867d41f7236235c28b3931a1b2.
-rw-r--r--django/http/multipartparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/http/multipartparser.py b/django/http/multipartparser.py
index f66cf2772f..789a6610a5 100644
--- a/django/http/multipartparser.py
+++ b/django/http/multipartparser.py
@@ -519,7 +519,7 @@ class BoundaryIter:
raise StopIteration()
chunk = b''.join(chunks)
- boundary = self._find_boundary(chunk, len(chunk) < self._rollback)
+ boundary = self._find_boundary(chunk)
if boundary:
end, next = boundary
@@ -537,7 +537,7 @@ class BoundaryIter:
stream.unget(chunk[-rollback:])
return chunk[:-rollback]
- def _find_boundary(self, data, eof=False):
+ def _find_boundary(self, data):
"""
Find a multipart boundary in data.