[Python-modules-commits] r30955 - in packages/requests/trunk/debian (2 files)
eriol-guest at users.alioth.debian.org
eriol-guest at users.alioth.debian.org
Wed Oct 8 18:22:13 UTC 2014
Date: Wednesday, October 8, 2014 @ 18:22:12
Author: eriol-guest
Revision: 30955
Refresh 02_use-system-chardet-and-urllib3.patch
Modified:
packages/requests/trunk/debian/changelog
packages/requests/trunk/debian/patches/02_use-system-chardet-and-urllib3.patch
Modified: packages/requests/trunk/debian/changelog
===================================================================
--- packages/requests/trunk/debian/changelog 2014-10-08 17:50:19 UTC (rev 30954)
+++ packages/requests/trunk/debian/changelog 2014-10-08 18:22:12 UTC (rev 30955)
@@ -4,13 +4,14 @@
* debian/patches/01_use-system-ca-certificates.patch
- Refresh.
* debian/patches/02_use-system-chardet-and-urllib3.patch
+ - Refresh.
- Provide requests.packages package because it will be used to supply
- a stub for requests.packages.urllib3
+ a stub for requests.packages.urllib3.
* debian/python{,3}-requests.links:
- Provide requests.packages.urllib3 as symlink of python{,3}-urllib3
system package since it is used as import location. (Closes: #753578)
- -- Daniele Tricoli <eriol at mornie.org> Wed, 08 Oct 2014 19:46:37 +0200
+ -- Daniele Tricoli <eriol at mornie.org> Wed, 08 Oct 2014 20:20:41 +0200
requests (2.3.0-1) unstable; urgency=medium
Modified: packages/requests/trunk/debian/patches/02_use-system-chardet-and-urllib3.patch
===================================================================
--- packages/requests/trunk/debian/patches/02_use-system-chardet-and-urllib3.patch 2014-10-08 17:50:19 UTC (rev 30954)
+++ packages/requests/trunk/debian/patches/02_use-system-chardet-and-urllib3.patch 2014-10-08 18:22:12 UTC (rev 30955)
@@ -3,37 +3,43 @@
used to supply a stub for ``requests.packages.urllib3``.
Author: Daniele Tricoli <eriol at mornie.org>
Forwarded: not-needed
-Last-Update: 2014-07-03
+Last-Update: 2014-10-08
--- a/requests/adapters.py
+++ b/requests/adapters.py
-@@ -11,18 +11,18 @@
+@@ -11,21 +11,21 @@
import socket
from .models import Response
+-from .packages.urllib3 import Retry
-from .packages.urllib3.poolmanager import PoolManager, proxy_from_url
-from .packages.urllib3.response import HTTPResponse
-from .packages.urllib3.util import Timeout as TimeoutSauce
++from urllib3 import Retry
+from urllib3.poolmanager import PoolManager, proxy_from_url
+from urllib3.response import HTTPResponse
+from urllib3.util import Timeout as TimeoutSauce
- from .compat import urlparse, basestring, urldefrag, unquote
+ from .compat import urlparse, basestring, urldefrag
from .utils import (DEFAULT_CA_BUNDLE_PATH, get_encoding_from_headers,
prepend_scheme_if_needed, get_auth_from_url)
from .structures import CaseInsensitiveDict
+-from .packages.urllib3.exceptions import ConnectTimeoutError
+-from .packages.urllib3.exceptions import HTTPError as _HTTPError
-from .packages.urllib3.exceptions import MaxRetryError
--from .packages.urllib3.exceptions import TimeoutError
+-from .packages.urllib3.exceptions import ProxyError as _ProxyError
+-from .packages.urllib3.exceptions import ProtocolError
+-from .packages.urllib3.exceptions import ReadTimeoutError
-from .packages.urllib3.exceptions import SSLError as _SSLError
--from .packages.urllib3.exceptions import HTTPError as _HTTPError
--from .packages.urllib3.exceptions import ProxyError as _ProxyError
++from urllib3.exceptions import ConnectTimeoutError
++from urllib3.exceptions import HTTPError as _HTTPError
+from urllib3.exceptions import MaxRetryError
-+from urllib3.exceptions import TimeoutError
++from urllib3.exceptions import ProxyError as _ProxyError
++from urllib3.exceptions import ProtocolError
++from urllib3.exceptions import ReadTimeoutError
+from urllib3.exceptions import SSLError as _SSLError
-+from urllib3.exceptions import HTTPError as _HTTPError
-+from urllib3.exceptions import ProxyError as _ProxyError
from .cookies import extract_cookies_to_jar
- from .exceptions import ConnectionError, Timeout, SSLError, ProxyError
- from .auth import _basic_auth_str
+ from .exceptions import (ConnectionError, ConnectTimeout, ReadTimeout, SSLError,
+ ProxyError)
--- a/requests/compat.py
+++ b/requests/compat.py
@@ -4,7 +4,7 @@
@@ -45,15 +51,15 @@
import sys
-@@ -89,7 +89,7 @@
+@@ -91,7 +91,7 @@
import cookielib
from Cookie import Morsel
from StringIO import StringIO
- from .packages.urllib3.packages.ordered_dict import OrderedDict
+ from urllib3.packages.ordered_dict import OrderedDict
- from httplib import IncompleteRead
builtin_str = str
+ bytes = str
--- a/requests/models.py
+++ b/requests/models.py
@@ -16,10 +16,10 @@
@@ -63,17 +69,17 @@
-from .packages.urllib3.fields import RequestField
-from .packages.urllib3.filepost import encode_multipart_formdata
-from .packages.urllib3.util import parse_url
--from .packages.urllib3.exceptions import DecodeError
+-from .packages.urllib3.exceptions import (
+from urllib3.fields import RequestField
+from urllib3.filepost import encode_multipart_formdata
+from urllib3.util import parse_url
-+from urllib3.exceptions import DecodeError
++from urllib3.exceptions import (
+ DecodeError, ReadTimeoutError, ProtocolError)
from .exceptions import (
- HTTPError, RequestException, MissingSchema, InvalidURL,
- ChunkedEncodingError, ContentDecodingError)
+ HTTPError, RequestException, MissingSchema, InvalidURL,
--- a/setup.py
+++ b/setup.py
-@@ -17,12 +17,6 @@
+@@ -19,12 +19,6 @@
packages = [
'requests',
'requests.packages',
More information about the Python-modules-commits
mailing list