diff options
author | Daniele Tricoli <eriol@mornie.org> | 2013-10-16 10:55:59 +0000 |
---|---|---|
committer | Daniele Tricoli <eriol@mornie.org> | 2013-10-16 10:55:59 +0000 |
commit | dc761eb8f77394f65d307d1490555340909482ba (patch) | |
tree | 9ace2decda3ddf974b5b08f0aa29f6e64de02495 /debian/patches | |
parent | cf1fb3a3a6e1f09ac7696660f64a0d3dcebca3b3 (diff) | |
download | python-urllib3-dc761eb8f77394f65d307d1490555340909482ba.tar python-urllib3-dc761eb8f77394f65d307d1490555340909482ba.tar.gz |
* debian/patches/01_do-not-use-embedded-python-six.patch
- Refreshed
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/01_do-not-use-embedded-python-six.patch | 30 |
1 files changed, 15 insertions, 15 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 f88c1ef..9bc9e92 100644 --- a/debian/patches/01_do-not-use-embedded-python-six.patch +++ b/debian/patches/01_do-not-use-embedded-python-six.patch @@ -1,7 +1,7 @@ Description: Do not use embedded copy of python-six. Author: Daniele Tricoli <eriol@mornie.org> Forwarded: not-needed -Last-Update: 2013-05-07 +Last-Update: 2013-10-16 --- a/test/test_collections.py +++ b/test/test_collections.py @@ -16,15 +16,15 @@ Last-Update: 2013-05-07 --- a/urllib3/connectionpool.py +++ b/urllib3/connectionpool.py -@@ -54,7 +54,7 @@ +@@ -55,7 +55,7 @@ + ProxyError, ) - - from .packages.ssl_match_hostname import match_hostname, CertificateError + from .packages.ssl_match_hostname import CertificateError, match_hostname -from .packages import six +import six - - - xrange = six.moves.xrange + from .request import RequestMethods + from .response import HTTPResponse + from .util import ( --- a/urllib3/filepost.py +++ b/urllib3/filepost.py @@ -10,8 +10,8 @@ @@ -35,37 +35,37 @@ Last-Update: 2013-05-07 -from .packages.six import b +import six +from six import b + from .fields import RequestField writer = codecs.lookup('utf-8')[3] - --- a/urllib3/response.py +++ b/urllib3/response.py -@@ -9,7 +9,7 @@ - import zlib +@@ -10,7 +10,7 @@ + import io from .exceptions import DecodeError -from .packages.six import string_types as basestring, binary_type +from six import string_types as basestring, binary_type + from .util import is_fp_closed - log = logging.getLogger(__name__) --- a/urllib3/util.py +++ b/urllib3/util.py @@ -32,7 +32,7 @@ + except ImportError: pass - -from .packages import six +import six - from .exceptions import LocationParseError, SSLError + from .exceptions import LocationParseError, SSLError, TimeoutStateError --- a/test/test_filepost.py +++ b/test/test_filepost.py -@@ -1,7 +1,7 @@ - import unittest +@@ -2,7 +2,7 @@ from urllib3.filepost import encode_multipart_formdata, iter_fields + from urllib3.fields import RequestField -from urllib3.packages.six import b, u +from six import b, u |