Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Kill mx.TextTools with fire

  • Loading branch information...
commit 222a956ecc5b163420d524a675ed01d75622ea6b 1 parent c346d35
@mattrobenolt mattrobenolt 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:
Please sign in to comment.
Something went wrong with that request. Please try again.