AlkantarClanX12

Your IP : 3.145.8.139


Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/urllib3/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/urllib3/__pycache__/exceptions.cpython-311.pyc

�

�܋f�$���ddlmZddlZddlZddlZddlmZddlmZ	ej
rddlmZddl
mZddlmZdd	lmZGd
�de��ZGd�d
e��ZejejdefejedffZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��Z e Z!Gd�de��Z"Gd�de��Z#Gd�d e��Z$Gd!�d"e��Z%Gd#�d$e%e��Z&Gd%�d&e%��Z'Gd'�d(e'e��Z(Gd)�d*e(��Z)Gd+�d,e��Z*Gd-�d.e��Z+Gd/�d0e��Z,Gd1�d2e-e��Z.Gd3�d4e.��Z/Gd5�d6e.��Z0Gd7�d8e��Z1Gd9�d:e��Z2Gd;�d<e2��Z3Gd=�d>e2��Z4Gd?�d@e2��Z5GdA�dBe2��Z6GdC�dDe��Z7GdE�dFe e-��Z8GdG�dHe��Z9GdI�dJee	��ZGdK�dLee	��Z:GdM�dNe��Z;GdO�dPe<e0��Z=GdQ�dRe-��Z>GdS�dTe��Z?GdU�dVe��Z@dS)W�)�annotationsN)�
MessageDefect)�IncompleteRead�)�HTTPConnection)�ConnectionPool)�HTTPResponse)�Retryc��eZdZdZdS)�	HTTPErrorz#Base exception used by this module.N��__name__�
__module__�__qualname__�__doc__���I/opt/cloudlinux/venv/lib64/python3.11/site-packages/urllib3/exceptions.pyrrs������-�-�-�-rrc��eZdZdZdS)�HTTPWarningz!Base warning used by this module.Nr
rrrrrs������+�+�+�+rr.c�,��eZdZdZd�fd�Zdd
�Z�xZS)
�	PoolErrorz/Base exception for errors caused within a pool.�poolr�message�str�return�Nonec�b��||_t���|�d|����dS�Nz: )r�super�__init__)�selfrr�	__class__s   �rr!zPoolError.__init__"�6�����	�
�����D�-�-�G�-�-�.�.�.�.�.r�_TYPE_REDUCE_RESULTc��|jdfS)N)NN�r#�r"s r�
__reduce__zPoolError.__reduce__&s���~�|�+�+r)rrrrrr�rr%�rrrrr!r)�
__classcell__r's@rrrsW�������9�9�/�/�/�/�/�/�,�,�,�,�,�,�,�,rrc�,��eZdZdZd�fd	�Zd
d�Z�xZS)�RequestErrorz8Base exception for PoolErrors that have associated URLs.rr�urlrrrrc�Z��||_t���||��dS�N)r/r r!)r"rr/rr#s    �rr!zRequestError.__init__.s*������
������w�'�'�'�'�'rr%c�$�|jd|jdffSr1)r#r/r(s rr)zRequestError.__reduce__2s���~��d�h��5�5�5r)rrr/rrrrrr*r+r's@rr.r.+sW�������B�B�(�(�(�(�(�(�6�6�6�6�6�6�6�6rr.c��eZdZdZdS)�SSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nr
rrrr4r47�������C�C�C�Crr4c�0��eZdZUdZded<d
�fd	�Z�xZS)�
ProxyErrorz,Raised when the connection to a proxy fails.�	Exception�original_errorrr�errorrrc�Z��t���||��||_dSr1)r r!r9)r"rr:r#s   �rr!zProxyError.__init__As+���
������%�(�(�(�#����r)rrr:r8rr)rrrr�__annotations__r!r,r's@rr7r7;sS��������6�6�����$�$�$�$�$�$�$�$�$�$rr7c��eZdZdZdS)�DecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nr
rrrr>r>F�������E�E�E�Err>c��eZdZdZdS)�
ProtocolErrorz>Raised when something unexpected happens mid-request/response.Nr
rrrrArAJs������H�H�H�HrrAc�(��eZdZdZ	dd
�fd�
Z�xZS)�
MaxRetryErroraRaised when the maximum number of retries is exceeded.

    :param pool: The connection pool
    :type pool: :class:`~urllib3.connectionpool.HTTPConnectionPool`
    :param str url: The requested Url
    :param reason: The underlying error
    :type reason: :class:`Exception`

    Nrrr/r�reason�Exception | Nonerrc�n��||_d|�d|�d�}t���|||��dS)NzMax retries exceeded with url: z (Caused by �))rDr r!)r"rr/rDrr#s     �rr!zMaxRetryError.__init__`sF������P�C�P�P�V�P�P�P��
������s�G�,�,�,�,�,rr1)rrr/rrDrErr�rrrrr!r,r's@rrCrCUsS���������JN�-�-�-�-�-�-�-�-�-�-�-rrCc�(��eZdZdZ	dd
�fd�
Z�xZS)�HostChangedErrorz?Raised when an existing pool gets a request for a foreign host.�rrr/r�retries�Retry | intrrc�f��d|��}t���|||��||_dS)Nz'Tried to open a foreign host with url: )r r!rL)r"rr/rLrr#s     �rr!zHostChangedError.__init__ms:���B�C�A�A��
������s�G�,�,�,�����r)rK)rrr/rrLrMrrrHr's@rrJrJjsO�������I�I�FG�����������rrJc��eZdZdZdS)�TimeoutStateErrorz1Raised when passing an invalid state to a timeoutNr
rrrrPrPus������;�;�;�;rrPc��eZdZdZdS)�TimeoutErrorz�Raised when a socket timeout error occurs.

    Catching this error will catch both :exc:`ReadTimeoutErrors
    <ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
    Nr
rrrrRrRys���������rrRc��eZdZdZdS)�ReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNr
rrrrTrT�s������P�P�P�PrrTc��eZdZdZdS)�ConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNr
rrrrVrV�s������J�J�J�JrrVc�<��eZdZdZd
�fd�Zedd	���Z�xZS)�NewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.�connrrrrrc�b��||_t���|�d|����dSr)rYr r!)r"rYrr#s   �rr!zNewConnectionError.__init__�r$rc�H�tjdtd���|jS)Nz\The 'pool' property is deprecated and will be removed in urllib3 v2.1.0. Use 'conn' instead.�)�
stacklevel)�warnings�warn�DeprecationWarningrYr(s rrzNewConnectionError.pool�s0���
�
5���		
�	
�	
�	
��y�r)rYrrrrr)rr)rrrrr!�propertyrr,r's@rrXrX�sc�������R�R�/�/�/�/�/�/������X�����rrXc�$��eZdZdZd	�fd�Z�xZS)
�NameResolutionErrorz'Raised when host name resolution fails.�hostrrYrrD�socket.gaierrorc�^��d|�d|�d�}t���||��dS)NzFailed to resolve 'z' (rG�r r!)r"rdrYrDrr#s     �rr!zNameResolutionError.__init__�s;���:��:�:��:�:�:��
������w�'�'�'�'�'r)rdrrYrrDrerHr's@rrcrc�sC�������1�1�(�(�(�(�(�(�(�(�(�(rrcc��eZdZdZdS)�EmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.Nr
rrrriri��������M�M�M�Mrric��eZdZdZdS)�
FullPoolErrorzGRaised when we try to add a connection to a full pool in blocking mode.Nr
rrrrlrl�s������Q�Q�Q�Qrrlc��eZdZdZdS)�ClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.Nr
rrrrnrn�rjrrnc��eZdZdZdS)�LocationValueErrorz<Raised when there is something wrong with a given URL input.Nr
rrrrprp�s������F�F�F�Frrpc�$��eZdZdZd�fd�Z�xZS)�LocationParseErrorz=Raised when get_host or similar fails to parse the URL input.�locationrrrc�b��d|��}t���|��||_dS)NzFailed to parse: )r r!rs)r"rsrr#s   �rr!zLocationParseError.__init__�s3���0�h�0�0��
������!�!�!� ��
�
�
r)rsrrrrHr's@rrrrr�sC�������G�G�!�!�!�!�!�!�!�!�!�!rrrc�$��eZdZdZd�fd�Z�xZS)�URLSchemeUnknownz2Raised when a URL input has an unsupported scheme.�schemerc�b��d|��}t���|��||_dS)NzNot supported URL scheme )r r!rw�r"rwrr#s   �rr!zURLSchemeUnknown.__init__�s3���6�f�6�6��
������!�!�!�����r)rwrrHr's@rrvrv�sC�������<�<����������rrvc��eZdZdZdZdZdS)�
ResponseErrorzDUsed as a container for an error reason supplied in a MaxRetryError.ztoo many error responsesz&too many {status_code} error responsesN)rrrr�
GENERIC_ERROR�SPECIFIC_ERRORrrrr{r{�s������N�N�.�M�=�N�N�Nrr{c��eZdZdZdS)�SecurityWarningz0Warned when performing security reducing actionsNr
rrrrr��������:�:�:�:rrc��eZdZdZdS)�InsecureRequestWarningz/Warned when making an unverified HTTPS request.Nr
rrrr�r��s������9�9�9�9rr�c��eZdZdZdS)�NotOpenSSLWarningz)Warned when using unsupported SSL libraryNr
rrrr�r��s������3�3�3�3rr�c��eZdZdZdS)�SystemTimeWarningz0Warned when system time is suspected to be wrongNr
rrrr�r��r�rr�c��eZdZdZdS)�InsecurePlatformWarningzIWarned when certain TLS/SSL configuration is not available on a platform.Nr
rrrr�r��s������S�S�S�Srr�c��eZdZdZdS)�DependencyWarningzc
    Warned when an attempt is made to import a module with missing optional
    dependencies.
    Nr
rrrr�r������������rr�c��eZdZdZdS)�ResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.Nr
rrrr�r��r?rr�c��eZdZdZdS)�BodyNotHttplibCompatiblez�
    Body should be :class:`http.client.HTTPResponse` like
    (have an fp attribute which returns raw chunks) for read_chunked().
    Nr
rrrr�r��r�rr�c�"�eZdZdZdd�Zdd	�Zd
S)
rz�
    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.
    �partial�int�expectedrrc�"�||_||_dSr1�r�r�)r"r�r�s   rr!zIncompleteRead.__init__�s����� ��
�
�
rrc�$�d|j|jfzS)Nz/IncompleteRead(%i bytes read, %i more expected)r�r(s r�__repr__zIncompleteRead.__repr__s��@��L��M�D
�
�	
rN)r�r�r�r�rr�rr�rrrrr!r�rrrrr�sF��������!�!�!�!�
�
�
�
�
�
rrc�"�eZdZdZdd�Zd
d
�ZdS)�InvalidChunkLengthz+Invalid chunk length in a chunked response.�responser	�length�bytesrrc�l�|���|_|j|_||_||_dSr1)�tellr��length_remainingr�r�r�)r"r�r�s   rr!zInvalidChunkLength.__init__
s-��$�M�M�O�O���$,�$=��
� ��
�����rrc�$�d|j|jfzS)Nz0InvalidChunkLength(got length %r, %i bytes read))r�r�r(s rr�zInvalidChunkLength.__repr__s��A��K��L�E
�
�	
rN)r�r	r�r�rrr�r�rrrr�r�
sB������5�5�����
�
�
�
�
�
rr�c��eZdZdZdS)�
InvalidHeaderz(The header provided was somehow invalid.Nr
rrrr�r�s������2�2�2�2rr�c�$��eZdZdZd�fd�Z�xZS)�ProxySchemeUnknownz1ProxyManager does not support the supplied schemerw�
str | Nonerrc�p��|dkrd}|�d}nd|�d�}t���|��dS)N�	localhostz>Proxy URL had no scheme, should start with http:// or https://z!Proxy URL had unsupported scheme z , should use http:// or https://rgrys   �rr!zProxySchemeUnknown.__init__#sO����[� � ��F��>�V�G�G�b�&�b�b�b�G�
������!�!�!�!�!r)rwr�rrrHr's@rr�r�sC�������;�;�	"�	"�	"�	"�	"�	"�	"�	"�	"�	"rr�c��eZdZdZdS)�ProxySchemeUnsupportedz=Fetching HTTPS resources through HTTPS proxies is unsupportedNr
rrrr�r�/s������G�G�G�Grr�c�$��eZdZdZd	�fd�Z�xZS)
�HeaderParsingErrorzNRaised by assert_header_parsing, but we convert it to a log.warning statement.�defects�list[MessageDefect]�
unparsed_data�bytes | str | Nonerrc�\��|pd�d|��}t���|��dS)N�Unknownz, unparsed data: rg)r"r�r�rr#s    �rr!zHeaderParsingError.__init__6s;����)�	�M�M�M�M�M��
������!�!�!�!�!r)r�r�r�r�rrrHr's@rr�r�3sC�������X�X�"�"�"�"�"�"�"�"�"�"rr�c��eZdZdZdS)�UnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyNr
rrrr�r�=r5rr�)A�
__future__r�socket�typingr^�email.errorsr�http.clientr�httplib_IncompleteRead�
TYPE_CHECKING�
connectionr�connectionpoolrr�r	�
util.retryr
r8r�Warningr�Tuple�Callable�objectr%rr.r4r7r>rA�ConnectionErrorrCrJrPrRrTrVrXrcrirlrn�
ValueErrorrprrrvr{rr�r�r�r�r�r�r�r�r��AssertionErrorr�r�r�r�rrr�<module>r�s���"�"�"�"�"�"�
�
�
�
�
�
�
�
�����&�&�&�&�&�&�@�@�@�@�@�@�	��"�*�*�*�*�*�*�.�.�.�.�.�.�&�&�&�&�&�&�!�!�!�!�!�!�
.�.�.�.�.�	�.�.�.�,�,�,�,�,�'�,�,�,��l�
�O�C��K� �&�,�v�s�{�";�;���
	,�	,�	,�	,�	,�	�	,�	,�	,�	6�	6�	6�	6�	6�9�	6�	6�	6�D�D�D�D�D�y�D�D�D�$�$�$�$�$��$�$�$�F�F�F�F�F�)�F�F�F�I�I�I�I�I�I�I�I�I�
 ��-�-�-�-�-�L�-�-�-�*�����|����<�<�<�<�<�	�<�<�<������9����Q�Q�Q�Q�Q�|�\�Q�Q�Q�K�K�K�K�K�,�K�K�K������,�i����&(�(�(�(�(�,�(�(�(�N�N�N�N�N�Y�N�N�N�R�R�R�R�R�I�R�R�R�N�N�N�N�N�i�N�N�N�G�G�G�G�G��Y�G�G�G�!�!�!�!�!�+�!�!�!������)����>�>�>�>�>�I�>�>�>�;�;�;�;�;�k�;�;�;�:�:�:�:�:�_�:�:�:�4�4�4�4�4��4�4�4�;�;�;�;�;��;�;�;�T�T�T�T�T�o�T�T�T����������F�F�F�F�F��
�F�F�F������y����
�
�
�
�
�Y� 6�
�
�
�&

�

�

�

�

��$:�

�

�

� 3�3�3�3�3�I�3�3�3�"�"�"�"�"��)9�"�"�"�"H�H�H�H�H�Z�H�H�H�"�"�"�"�"��"�"�"�D�D�D�D�D�I�D�D�D�D�Dr