Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/future/backports/urllib/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/future/backports/urllib/__pycache__/error.cpython-311.pyc

�

�܋f�
���dZddlmZmZmZddlmZddlmZ	gd�Z
Gd�de��ZGd�d	ee	j
��ZGd
�de��ZdS)
a�Exception classes raised by urllib.

The base exception class is URLError, which inherits from IOError.  It
doesn't define any behavior of its own, but is the base class for all
exceptions defined in this package.

HTTPError is an exception class that is also a valid HTTP response
instance.  It behaves this way because HTTP protocol errors are valid
responses, with a status code, headers, and a body.  In some contexts,
an application may want to handle an exception like a regular
response.
�)�absolute_import�division�unicode_literals)�standard_library)�response)�URLError�	HTTPError�ContentTooShortErrorc��eZdZdd�Zd�ZdS)rNc�:�|f|_||_|�	||_dSdS�N)�args�reason�filename)�selfrrs   �n/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/future/backports/urllib/error.py�__init__zURLError.__init__ s+���G��	������$�D�M�M�M� ��c��d|jzS)Nz<urlopen error %s>)r�rs r�__str__zURLError.__str__&s��#�d�k�1�1rr
)�__name__�
__module__�__qualname__rr�rrrrs7������%�%�%�%�2�2�2�2�2rrc�R�eZdZdZejjZd�Zd�Ze	d���Z
d�ZdS)r	zBRaised when HTTP error occurs, but also acts like non-error returnc��||_||_||_||_||_|�|�||||��dSdSr
)�code�msg�hdrs�fpr�_HTTPError__super_init)r�urlrrr r!s      rrzHTTPError.__init__-sS����	������	������
�
�>����b�$��T�2�2�2�2�2��>rc�&�d|j�d|j��S)NzHTTP Error z: )rrrs rrzHTTPError.__str__:s���&*�i�i�i����:�:rc��|jSr
)rrs rrzHTTPError.reason?s	���x�rc��|jSr
)r rs r�infozHTTPError.infoCs
���y�rN)rrr�__doc__�urllib_response�
addinfourlrr"r�propertyrr'rrrr	r	)sm������L�L�"�-�6�L�3�3�3�;�;�;�
����X������rr	c��eZdZd�ZdS)r
c�J�t�||��||_dSr
)rr�content)r�messager.s   rrzContentTooShortError.__init__Is#�����$��(�(�(�����rN)rrrrrrrr
r
Hs#����������rr
N)r(�
__future__rrr�futurer�future.backports.urllibrr)�__all__�IOErrorrr*r	r
rrr�<module>r5s�����C�B�B�B�B�B�B�B�B�B�#�#�#�#�#�#�?�?�?�?�?�?�<�
;�
;��
2�
2�
2�
2�
2�w�
2�
2�
2�������/�4����>�����8�����r

Hacked By AnonymousFox1.0, Coded By AnonymousFox