aboutsummaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorDaniele Tricoli <eriol@mornie.org>2014-03-31 15:51:35 +0000
committerDaniele Tricoli <eriol@mornie.org>2014-03-31 15:51:35 +0000
commit5c9427b59c8fcbccab28843a886dcd65593b8117 (patch)
treef834e6632a807911eb7ca70b6dd38351baecbaea /debian/patches
parent3c8bdc2850bc81f97d69eb7b07cdcaef1808dab8 (diff)
downloadpython-urllib3-5c9427b59c8fcbccab28843a886dcd65593b8117.tar
python-urllib3-5c9427b59c8fcbccab28843a886dcd65593b8117.tar.gz
Refreshed 01_do-not-use-embedded-python-six.patch
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/01_do-not-use-embedded-python-six.patch28
1 files changed, 14 insertions, 14 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 7932776..d7acf04 100644
--- a/debian/patches/01_do-not-use-embedded-python-six.patch
+++ b/debian/patches/01_do-not-use-embedded-python-six.patch
@@ -1,14 +1,14 @@
Description: Do not use embedded copy of python-six.
Author: Daniele Tricoli <eriol@mornie.org>
Forwarded: not-needed
-Last-Update: 2013-10-16
+Last-Update: 2014-03-31
--- a/test/test_collections.py
+++ b/test/test_collections.py
-@@ -1,7 +1,7 @@
- import unittest
-
- from urllib3._collections import RecentlyUsedContainer as Container
+@@ -4,7 +4,7 @@
+ HTTPHeaderDict,
+ RecentlyUsedContainer as Container
+ )
-from urllib3.packages import six
+import six
xrange = six.moves.xrange
@@ -16,15 +16,15 @@ Last-Update: 2013-10-16
--- a/urllib3/connectionpool.py
+++ b/urllib3/connectionpool.py
-@@ -55,7 +55,7 @@
+@@ -30,7 +30,7 @@
ProxyError,
)
- from .packages.ssl_match_hostname import CertificateError, match_hostname
+ from .packages.ssl_match_hostname import CertificateError
-from .packages import six
+import six
- from .request import RequestMethods
- from .response import HTTPResponse
- from .util import (
+ from .connection import (
+ port_by_scheme,
+ DummyConnection,
--- a/urllib3/filepost.py
+++ b/urllib3/filepost.py
@@ -10,8 +10,8 @@
@@ -40,9 +40,9 @@ Last-Update: 2013-10-16
writer = codecs.lookup('utf-8')[3]
--- a/urllib3/response.py
+++ b/urllib3/response.py
-@@ -10,7 +10,7 @@
- import io
+@@ -11,7 +11,7 @@
+ from ._collections import HTTPHeaderDict
from .exceptions import DecodeError
-from .packages.six import string_types as basestring, binary_type
+from six import string_types as basestring, binary_type
@@ -99,8 +99,8 @@ Last-Update: 2013-10-16
import unittest
from urllib3.fields import guess_content_type, RequestField
--from urllib3.packages.six import b, u
-+from six import b, u
+-from urllib3.packages.six import u
++from six import u
class TestRequestField(unittest.TestCase):