aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Tricoli <eriol@mornie.org>2013-10-16 16:18:43 +0000
committerDaniele Tricoli <eriol@mornie.org>2013-10-16 16:18:43 +0000
commit924f82d9f619257fb208467d4967d328b26ddb8f (patch)
tree6cdb0f71e13fa5a559da6ca5aa49ba317db6bc24
parent0966581c9dca9e6d059c43406b392ea1e9eae9bc (diff)
downloadpython-urllib3-924f82d9f619257fb208467d4967d328b26ddb8f.tar
python-urllib3-924f82d9f619257fb208467d4967d328b26ddb8f.tar.gz
Fixed forgotten import of python-six
-rw-r--r--debian/patches/01_do-not-use-embedded-python-six.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/patches/01_do-not-use-embedded-python-six.patch b/debian/patches/01_do-not-use-embedded-python-six.patch
index 9bc9e92..7932776 100644
--- a/debian/patches/01_do-not-use-embedded-python-six.patch
+++ b/debian/patches/01_do-not-use-embedded-python-six.patch
@@ -71,3 +71,36 @@ Last-Update: 2013-10-16
BOUNDARY = '!! test boundary !!'
+--- a/dummyserver/handlers.py
++++ b/dummyserver/handlers.py
+@@ -186,7 +186,7 @@
+ """
+ import tornado.httputil
+ import email.utils
+- from urllib3.packages import six
++ import six
+ if not six.PY3:
+ line = line.encode('utf-8')
+ parts = tornado.httputil._parseparam(';' + line)
+--- a/urllib3/fields.py
++++ b/urllib3/fields.py
+@@ -7,7 +7,7 @@
+ import email.utils
+ import mimetypes
+
+-from .packages import six
++import six
+
+
+ def guess_content_type(filename, default='application/octet-stream'):
+--- a/test/test_fields.py
++++ b/test/test_fields.py
+@@ -1,7 +1,7 @@
+ import unittest
+
+ from urllib3.fields import guess_content_type, RequestField
+-from urllib3.packages.six import b, u
++from six import b, u
+
+
+ class TestRequestField(unittest.TestCase):