Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #649 from mattrobenolt/patch-1

Removed untested optional dependency on mx libraries.
  • Loading branch information...
commit b4b00349179208c5c7ec6a7e1715663afc40cb1a 2 parents 4cf057f + 222a956
@aaugustin aaugustin authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 django/http/multipartparser.py
View
7 django/http/multipartparser.py
@@ -439,11 +439,6 @@ def __init__(self, stream, boundary):
if not unused_char:
raise InputStreamExhausted()
self._stream.unget(unused_char)
- try:
- from mx.TextTools import FS
- self._fs = FS(boundary).find
- except ImportError:
- self._fs = lambda data: data.find(boundary)
def __iter__(self):
return self
@@ -499,7 +494,7 @@ def _find_boundary(self, data, eof = False):
* the end of current encapsulation
* the start of the next encapsulation
"""
- index = self._fs(data)
+ index = data.find(self._boundary)
if index < 0:
return None
else:

0 comments on commit b4b0034

Please sign in to comment.
Something went wrong with that request. Please try again.