diff options
| author | Matt Robenolt <matt@ydekproductions.com> | 2013-01-14 18:23:42 -0800 |
|---|---|---|
| committer | Matt Robenolt <matt@ydekproductions.com> | 2013-01-15 10:15:40 -0800 |
| commit | 222a956ecc5b163420d524a675ed01d75622ea6b (patch) | |
| tree | be38a09a46c1e8f9a71dfb0bfd3c40443c0e82df | |
| parent | c346d358fdca2e375a0840664165a51a47f4ae69 (diff) | |
Kill mx.TextTools with fire
| -rw-r--r-- | django/http/multipartparser.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/django/http/multipartparser.py b/django/http/multipartparser.py index edf98f6e49..070874f234 100644 --- a/django/http/multipartparser.py +++ b/django/http/multipartparser.py @@ -439,11 +439,6 @@ class BoundaryIter(six.Iterator): 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 @@ class BoundaryIter(six.Iterator): * 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: |
