Skip to content
Myr

Temporary urllib3 patch

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Cory Benfield · committed by Cory Benfield · parent cd84b3f · Browse files · 2 files+7 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−8 removed

  • other:+7 added−8 removed

2 files+7 added−8 removed

modified:requests/packages/urllib3/contrib/socks.py+6 added-6 removed
19 unmodified lines
20try:21 import socks22except ImportError:23 import warnings24 from urllib3.exceptions import DependencyWarning24 from ..exceptions import DependencyWarning2526 warnings.warn((27 'SOCKS support in urllib3 requires the installation of optional '28 'dependencies: specifically, PySocks. For more information, see '
4 unmodified lines
33 raise3435from socket import error as SocketError, timeout as SocketTimeout3637from urllib3.connection import (37from ..connection import (38 HTTPConnection, HTTPSConnection39)40from urllib3.connectionpool import (40from ..connectionpool import (41 HTTPConnectionPool, HTTPSConnectionPool42)43from urllib3.exceptions import ConnectTimeoutError, NewConnectionError44from urllib3.poolmanager import PoolManager45from urllib3.util.url import parse_url43from ..exceptions import ConnectTimeoutError, NewConnectionError44from ..poolmanager import PoolManager45from ..util.url import parse_url4647try:48 import ssl49except ImportError:
123 unmodified lines
modified:requests/packages/urllib3/__init__.py+1 added-2 removed
1"""2urllib3 - Thread-safe connection pooling and re-using.3"""44from __future__ import absolute_import5import warnings67from .connectionpool import (
22 unmodified lines
30 pass3132__author__ = 'Andrey Petrov (andrey.petrov@shazow.net)'33__license__ = 'MIT'35__version__ = '1.14'34__version__ = 'dev'3536__all__ = (37 'HTTPConnectionPool',38 'HTTPSConnectionPool',
54 unmodified lines