관리-도구
편집 파일: exceptions.cpython-39.pyc
a ����[��f ����������������������@���s~��d�dl�mZ�ddlmZ�G�dd��de�ZG�dd��de�ZG�dd ��d e�Z G�d d��de �Z G�dd ��d e�ZG�dd��de�ZG�dd��de�Z G�dd��de�ZeZG�dd��de �ZG�dd��de �ZG�dd��de�ZG�dd��de�ZG�dd��dee �ZG�dd��de�ZG�d d!��d!ee �ZG�d"d#��d#e �ZG�d$d%��d%e �ZG�d&d'��d'ee�ZG�d(d)��d)e�ZG�d*d+��d+e�ZG�d,d-��d-e�ZG�d.d/��d/e�ZG�d0d1��d1e�ZG�d2d3��d3e�Z G�d4d5��d5e�Z!G�d6d7��d7e�Z"G�d8d9��d9e�Z#G�d:d;��d;e�Z$G�d<d=��d=ee�Z%G�d>d?��d?e�Z&G�d@dA��dAee�ZG�dBdC��dCee�Z'G�dDdE��dEe�Z(G�dFdG��dGe)e�Z*G�dHdI��dIe�Z+G�dJdK��dKe�Z,G�dLdM��dMe�Z-dNS�)O�����)�absolute_import����)�IncompleteReadc�������������������@���s���e�Zd�ZdZdS�)� HTTPErrorz#Base exception used by this module.N��__name__� __module__�__qualname__�__doc__��r���r����B/usr/lib/python3.9/site-packages/pip/_vendor/urllib3/exceptions.pyr������s���r���c�������������������@���s���e�Zd�ZdZdS�)�HTTPWarningz!Base warning used by this module.Nr���r���r���r���r���r ������s���r ���c�������������������@���s ���e�Zd�ZdZdd��Zdd��ZdS�)� PoolErrorz/Base exception for errors caused within a pool.c�����������������C���s���||�_�t�|�d||f���d�S�)Nz%s: %s)�poolr����__init__)�selfr����messager���r���r���r������s����zPoolError.__init__c�����������������C���s ���|�j�dfS�)N)NN�� __class__�r���r���r���r���� __reduce__���s����zPoolError.__reduce__N�r���r���r ���r ���r���r���r���r���r���r���r������s���r���c�������������������@���s ���e�Zd�ZdZdd��Zdd��ZdS�)�RequestErrorz8Base exception for PoolErrors that have associated URLs.c�����������������C���s���||�_�t�|�||��d�S��N)�urlr���r���)r���r���r���r���r���r���r���r���#���s����zRequestError.__init__c�����������������C���s���|�j�d�|�jd�ffS�r���)r���r���r���r���r���r���r���'���s����zRequestError.__reduce__Nr���r���r���r���r���r��� ���s���r���c�������������������@���s���e�Zd�ZdZdS�)�SSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nr���r���r���r���r���r���,���s���r���c�����������������������s ���e�Zd�ZdZ��fdd�Z���ZS�)� ProxyErrorz,Raised when the connection to a proxy fails.c��������������������s$���t�t|��j||g|�R����||�_d�S�r���)�superr���r���Zoriginal_error)r���r����error�argsr���r���r���r���5���s����zProxyError.__init__�r���r���r ���r ���r���� __classcell__r���r���r���r���r���2���s���r���c�������������������@���s���e�Zd�ZdZdS�)�DecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nr���r���r���r���r���r"���:���s���r"���c�������������������@���s���e�Zd�ZdZdS�)� ProtocolErrorz>Raised when something unexpected happens mid-request/response.Nr���r���r���r���r���r#���@���s���r#���c�������������������@���s���e�Zd�ZdZddd�ZdS�)� MaxRetryErrora��Raised when the maximum number of retries is exceeded. :param pool: The connection pool :type pool: :class:`~urllib3.connectionpool.HTTPConnectionPool` :param string url: The requested Url :param exceptions.Exception reason: The underlying error Nc�����������������C���s&���||�_�d||f�}t�|�|||��d�S�)Nz0Max retries exceeded with url: %s (Caused by %r))�reasonr���r���)r���r���r���r%���r���r���r���r���r���W���s����zMaxRetryError.__init__)N�r���r���r ���r ���r���r���r���r���r���r$���M���s��� r$���c�������������������@���s���e�Zd�ZdZddd�ZdS�)�HostChangedErrorz?Raised when an existing pool gets a request for a foreign host.����c�����������������C���s"���d|�}t��|�|||��||�_d�S�)Nz)Tried to open a foreign host with url: %s)r���r����retries)r���r���r���r)���r���r���r���r���r���b���s����zHostChangedError.__init__N)r(���r&���r���r���r���r���r'���_���s���r'���c�������������������@���s���e�Zd�ZdZdS�)�TimeoutStateErrorz1Raised when passing an invalid state to a timeoutNr���r���r���r���r���r*���h���s���r*���c�������������������@���s���e�Zd�ZdZdS�)�TimeoutErrorz�Raised when a socket timeout error occurs. Catching this error will catch both :exc:`ReadTimeoutErrors <ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`. Nr���r���r���r���r���r+���n���s���r+���c�������������������@���s���e�Zd�ZdZdS�)�ReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNr���r���r���r���r���r,���x���s���r,���c�������������������@���s���e�Zd�ZdZdS�)�ConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNr���r���r���r���r���r-�������s���r-���c�������������������@���s���e�Zd�ZdZdS�)�NewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.Nr���r���r���r���r���r.�������s���r.���c�������������������@���s���e�Zd�ZdZdS�)�EmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.Nr���r���r���r���r���r/�������s���r/���c�������������������@���s���e�Zd�ZdZdS�)�ClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.Nr���r���r���r���r���r0�������s���r0���c�������������������@���s���e�Zd�ZdZdS�)�LocationValueErrorz<Raised when there is something wrong with a given URL input.Nr���r���r���r���r���r1�������s���r1���c�������������������@���s���e�Zd�ZdZdd��ZdS�)�LocationParseErrorz=Raised when get_host or similar fails to parse the URL input.c�����������������C���s���d|�}t��|�|��||�_d�S�)NzFailed to parse: %s)r���r����location)r���r3���r���r���r���r���r�������s����zLocationParseError.__init__Nr&���r���r���r���r���r2�������s���r2���c�����������������������s ���e�Zd�ZdZ��fdd�Z���ZS�)�URLSchemeUnknownz2Raised when a URL input has an unsupported scheme.c��������������������s"���d|�}t�t|���|��||�_d�S�)NzNot supported URL scheme %s)r���r4���r����scheme�r���r5���r���r���r���r���r�������s����zURLSchemeUnknown.__init__r ���r���r���r���r���r4�������s���r4���c�������������������@���s���e�Zd�ZdZdZdZdS�)� ResponseErrorzDUsed as a container for an error reason supplied in a MaxRetryError.ztoo many error responsesz&too many {status_code} error responsesN)r���r���r ���r ���Z GENERIC_ERRORZSPECIFIC_ERRORr���r���r���r���r7�������s���r7���c�������������������@���s���e�Zd�ZdZdS�)�SecurityWarningz0Warned when performing security reducing actionsNr���r���r���r���r���r8�������s���r8���c�������������������@���s���e�Zd�ZdZdS�)�SubjectAltNameWarningzBWarned when connecting to a host with a certificate missing a SAN.Nr���r���r���r���r���r9�������s���r9���c�������������������@���s���e�Zd�ZdZdS�)�InsecureRequestWarningz/Warned when making an unverified HTTPS request.Nr���r���r���r���r���r:�������s���r:���c�������������������@���s���e�Zd�ZdZdS�)�SystemTimeWarningz0Warned when system time is suspected to be wrongNr���r���r���r���r���r;�������s���r;���c�������������������@���s���e�Zd�ZdZdS�)�InsecurePlatformWarningzIWarned when certain TLS/SSL configuration is not available on a platform.Nr���r���r���r���r���r<�������s���r<���c�������������������@���s���e�Zd�ZdZdS�)�SNIMissingWarningz9Warned when making a HTTPS request without SNI available.Nr���r���r���r���r���r=�������s���r=���c�������������������@���s���e�Zd�ZdZdS�)�DependencyWarningzc Warned when an attempt is made to import a module with missing optional dependencies. Nr���r���r���r���r���r>�������s���r>���c�������������������@���s���e�Zd�ZdZdS�)�ResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.Nr���r���r���r���r���r?�������s���r?���c�������������������@���s���e�Zd�ZdZdS�)�BodyNotHttplibCompatiblez� Body should be :class:`http.client.HTTPResponse` like (have an fp attribute which returns raw chunks) for read_chunked(). Nr���r���r���r���r���r@�������s���r@���c�����������������������s(���e�Zd�ZdZ��fdd�Zdd��Z���ZS�)r���z� Response length doesn't match expected Content-Length Subclass of :class:`http.client.IncompleteRead` to allow int value for ``partial`` to avoid creating large objects on streamed reads. c��������������������s���t�t|���||��d�S�r���)r���r���r���)r����partial�expectedr���r���r���r�������s����zIncompleteRead.__init__c�����������������C���s���d|�j�|�jf�S�)Nz/IncompleteRead(%i bytes read, %i more expected))rA���rB���r���r���r���r����__repr__���s�����zIncompleteRead.__repr__�r���r���r ���r ���r���rC���r!���r���r���r���r���r�������s���r���c�����������������������s(���e�Zd�ZdZ��fdd�Zdd��Z���ZS�)�InvalidChunkLengthz+Invalid chunk length in a chunked response.c��������������������s(���t�t|���|���|j��||�_||�_d�S�r���)r���rE���r����tellZlength_remaining�response�length)r���rG���rH���r���r���r���r��� ��s ���� �zInvalidChunkLength.__init__c�����������������C���s���d|�j�|�jf�S�)Nz0InvalidChunkLength(got length %r, %i bytes read))rH���rA���r���r���r���r���rC�����s�����zInvalidChunkLength.__repr__rD���r���r���r���r���rE�����s���rE���c�������������������@���s���e�Zd�ZdZdS�)� InvalidHeaderz(The header provided was somehow invalid.Nr���r���r���r���r���rI�����s���rI���c�����������������������s ���e�Zd�ZdZ��fdd�Z���ZS�)�ProxySchemeUnknownz1ProxyManager does not support the supplied schemec��������������������s6���|dkrd�}|d�u�rd}nd|�}t�t|���|��d�S�)NZ localhostz>Proxy URL had no scheme, should start with http:// or https://zCProxy URL had unsupported scheme %s, should use http:// or https://)r���rJ���r���r6���r���r���r���r���#��s������zProxySchemeUnknown.__init__r ���r���r���r���r���rJ�����s���rJ���c�������������������@���s���e�Zd�ZdZdS�)�ProxySchemeUnsupportedz=Fetching HTTPS resources through HTTPS proxies is unsupportedNr���r���r���r���r���rK���2��s���rK���c�����������������������s ���e�Zd�ZdZ��fdd�Z���ZS�)�HeaderParsingErrorzNRaised by assert_header_parsing, but we convert it to a log.warning statement.c��������������������s$���d|pd|f�}t�t|���|��d�S�)Nz%s, unparsed data: %rZUnknown)r���rL���r���)r���ZdefectsZ unparsed_datar���r���r���r���r���;��s����zHeaderParsingError.__init__r ���r���r���r���r���rL���8��s���rL���c�������������������@���s���e�Zd�ZdZdS�)�UnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyNr���r���r���r���r���rM���@��s���rM���N).Z __future__r���Zpackages.six.moves.http_clientr���Zhttplib_IncompleteRead� Exceptionr����Warningr ���r���r���r���r���r"���r#����ConnectionErrorr$���r'���r*���r+���r,���r-���r.���r/���r0���� ValueErrorr1���r2���r4���r7���r8���r9���r:���r;���r<���r=���r>���r?���r@���rE���rI����AssertionErrorrJ���rK���rL���rM���r���r���r���r����<module>���sN���