Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 423620 Details for
Bug 572620
dev-python/requests-2.9.1-r2 - ImportError: No module named 'requests.packages.urllib3.exceptions'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
requests-2.9.1_use_system_packages.patch
requests-2.9.1_use_system_packages.patch (text/plain), 4.27 KB, created by
Peter Levine
on 2016-01-22 20:30:04 UTC
(
hide
)
Description:
requests-2.9.1_use_system_packages.patch
Filename:
MIME Type:
Creator:
Peter Levine
Created:
2016-01-22 20:30:04 UTC
Size:
4.27 KB
patch
obsolete
>--- requests/adapters.py.old 2016-01-22 15:06:51.950246274 -0500 >+++ requests/adapters.py 2016-01-22 15:09:33.679148511 -0500 >@@ -12,25 +12,25 @@ > import socket > > from .models import Response >-from .packages.urllib3.poolmanager import PoolManager, proxy_from_url >-from .packages.urllib3.response import HTTPResponse >-from .packages.urllib3.util import Timeout as TimeoutSauce >-from .packages.urllib3.util.retry import Retry >+from urllib3.poolmanager import PoolManager, proxy_from_url >+from urllib3.response import HTTPResponse >+from urllib3.util import Timeout as TimeoutSauce >+from urllib3.util.retry import Retry > from .compat import urlparse, basestring > from .utils import (DEFAULT_CA_BUNDLE_PATH, get_encoding_from_headers, > prepend_scheme_if_needed, get_auth_from_url, urldefragauth, > select_proxy) > from .structures import CaseInsensitiveDict >-from .packages.urllib3.exceptions import ClosedPoolError >-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 NewConnectionError >-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 ResponseError >+from urllib3.exceptions import ClosedPoolError >+from urllib3.exceptions import ConnectTimeoutError >+from urllib3.exceptions import HTTPError as _HTTPError >+from urllib3.exceptions import MaxRetryError >+from urllib3.exceptions import NewConnectionError >+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 ResponseError > from .cookies import extract_cookies_to_jar > from .exceptions import (ConnectionError, ConnectTimeout, ReadTimeout, SSLError, > ProxyError, RetryError) >--- requests/sessions.py.old 2016-01-22 15:09:01.374204411 -0500 >+++ requests/sessions.py 2016-01-22 15:10:10.110066366 -0500 >@@ -21,7 +21,7 @@ > from .utils import to_key_val_list, default_headers, to_native_string > from .exceptions import ( > TooManyRedirects, InvalidSchema, ChunkedEncodingError, ContentDecodingError) >-from .packages.urllib3._collections import RecentlyUsedContainer >+from urllib3._collections import RecentlyUsedContainer > from .structures import CaseInsensitiveDict > > from .adapters import HTTPAdapter >--- requests/compat.py.old 2016-01-22 15:13:30.677308359 -0500 >+++ requests/compat.py 2016-01-22 15:14:49.926892585 -0500 >@@ -4,7 +4,7 @@ > pythoncompat > """ > >-from .packages import chardet >+import chardet > > import sys > >@@ -39,7 +39,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 > > builtin_str = str > bytes = str >--- requests/exceptions.py.old 2016-01-22 15:15:25.284689878 -0500 >+++ requests/exceptions.py 2016-01-22 15:16:11.510410454 -0500 >@@ -7,7 +7,7 @@ > This module contains the set of Requests' exceptions. > > """ >-from .packages.urllib3.exceptions import HTTPError as BaseHTTPError >+from urllib3.exceptions import HTTPError as BaseHTTPError > > > class RequestException(IOError): >--- requests/models.py.old 2016-01-22 15:16:43.348209188 -0500 >+++ requests/models.py 2016-01-22 15:18:49.408350329 -0500 >@@ -16,10 +16,10 @@ > > from .auth import HTTPBasicAuth > from .cookies import cookiejar_from_dict, get_cookie_header, _copy_cookie_jar >-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 ( >+from urllib3.fields import RequestField >+from urllib3.filepost import encode_multipart_formdata >+from urllib3.util import parse_url >+from urllib3.exceptions import ( > DecodeError, ReadTimeoutError, ProtocolError, LocationParseError) > from .exceptions import ( > HTTPError, MissingSchema, InvalidURL, ChunkedEncodingError,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 572620
: 423620 |
423970