ok
Direktori : /lib/python3.6/site-packages/urllib3/contrib/__pycache__/ |
Current File : //lib/python3.6/site-packages/urllib3/contrib/__pycache__/socks.cpython-36.pyc |
3 nf�\� � @ s( d Z ddlmZ yddlZW n6 ek rR ddlZddlmZ ejde� � Y nX ddl m ZmZ ddlmZmZ dd lmZmZ dd lmZmZ ddlmZ ddlmZ yddlZW n ek r� dZY nX G d d� de�ZG dd� dee�ZG dd� de�ZG dd� de�ZG dd� de�ZdS )a� This 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. The SOCKS implementation supports the full range of urllib3 features. It also supports the following SOCKS features: - SOCKS4 - SOCKS4a - SOCKS5 - Usernames and passwords for the SOCKS proxy Known Limitations: - Currently PySocks does not support contacting remote websites via literal IPv6 addresses. Any such connection attempt will fail. You must use a domain name. - Currently PySocks does not support IPv6 connections to the SOCKS proxy. Any such connection attempt will fail. � )�absolute_importN� )�DependencyWarningz�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)�error�timeout)�HTTPConnection�HTTPSConnection)�HTTPConnectionPool�HTTPSConnectionPool)�ConnectTimeoutError�NewConnectionError)�PoolManager)� parse_urlc s( e Zd ZdZ� fdd�Zdd� Z� ZS )�SOCKSConnectionzG A plain-text HTTP connection that connects via a SOCKS proxy. c s"