σ `8(Zc@@s€dZddlmZyddlZWn@ek rhddlZddlmZejdeƒ‚nXddl m Z m Z ddlmZmZdd lmZmZdd lmZmZdd lmZdd lmZyddlZWnek r dZnXd efd„ƒYZdeefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZ dS(sK SOCKS support for urllib3 ~~~~~~~~~~~~~~~~~~~~~~~~~ This contrib module contains provisional support for SOCKS proxies from within urllib3. This module supports SOCKS4 (specifically the SOCKS4A variant) and SOCKS5. To enable its functionality, either install PySocks or install this module with the ``socks`` extra. Known Limitations: - Currently PySocks does not support contacting remote websites via literal IPv6 addresses. Any such connection attempt will fail. - Currently PySocks does not support IPv6 connections to the SOCKS proxy. Any such connection attempt will fail. i(tabsolute_importNi(tDependencyWarningsΒSOCKS support in urllib3 requires the installation of optional dependencies: specifically, PySocks. For more information, see https://urllib3.readthedocs.io/en/latest/contrib.html#socks-proxies(terrorttimeout(tHTTPConnectiontHTTPSConnection(tHTTPConnectionPooltHTTPSConnectionPool(tConnectTimeoutErrortNewConnectionError(t PoolManager(t parse_urltSOCKSConnectioncB@s eZdZd„Zd„ZRS(sG A plain-text HTTP connection that connects via a SOCKS proxy. cO@s/|jdƒ|_tt|ƒj||ŽdS(Nt_socks_options(tpopR tsuperR t__init__(tselftargstkwargs((sP/tmp/pip-build-0nEYGB/pip/pip/_vendor/requests/packages/urllib3/contrib/socks.pyR9scC@sƒi}|jr|j|ds2    E