Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/urllib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/urllib/__pycache__/error.cpython-311.opt-1.pyc
�

�,do	���dZddlZddlZgd�ZGd�de��ZGd�deejj��Z	Gd�d	e��Z
dS)
a�Exception classes raised by urllib.

The base exception class is URLError, which inherits from OSError.  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.
�N)�URLError�	HTTPError�ContentTooShortErrorc��eZdZdd�Zd�ZdS)rNc�:�|f|_||_|�	||_dSdS�N)�args�reason�filename)�selfr
rs   �3/opt/alt/python311/lib64/python3.11/urllib/error.py�__init__zURLError.__init__s+���G��	������$�D�M�M�M� ��c��d|jzS)Nz<urlopen error %s>)r
�rs r
�__str__zURLError.__str__s��#�d�k�1�1rr)�__name__�
__module__�__qualname__rr�rr
rrs7������%�%�%�%�2�2�2�2�2rrc��eZdZdZejjjZd�Zd�Z	d�Z
ed���Zed���Z
e
jd���Z
dS)	rzBRaised when HTTP error occurs, but also acts like non-error returnc��||_||_||_||_||_|�tj��}|�||||��dSr)�code�msg�hdrs�fpr�io�BytesIO�_HTTPError__super_init)r�urlrrrrs      r
rzHTTPError.__init__'sU����	������	������
�
�:�����B����"�d�C��.�.�.�.�.rc�&�d|j�d|j��S)NzHTTP Error �: �rrrs r
rzHTTPError.__str__1s���&*�i�i�i����:�:rc�(�d|j�d|j�d�S)Nz<HTTPError r"�>r#rs r
�__repr__zHTTPError.__repr__4s���'+�y�y�y�$�(�(�(�;�;rc��|jSr)rrs r
r
zHTTPError.reason9s	���x�rc��|jSr�rrs r
�headerszHTTPError.headers=s
���y�rc��||_dSrr))rr*s  r
r*zHTTPError.headersAs
����	�	�	rN)rrr�__doc__�urllib�response�
addinfourlrrrr&�propertyr
r*�setterrrr
rr#s�������L�L��?�-�6�L�/�/�/�;�;�;�<�<�<�
����X������X��
�^����^���rrc��eZdZdZd�ZdS)rzDException raised when downloaded size does not match content-length.c�J�t�||��||_dSr)rr�content)r�messager4s   r
rzContentTooShortError.__init__Hs#�����$��(�(�(�����rN)rrrr,rrrr
rrFs)������N�N�����rr)r,r�urllib.responser-�__all__�OSErrorrr.r/rrrrr
�<module>r9s�����
�	�	�	�����
;�
;�
;��
2�
2�
2�
2�
2�w�
2�
2�
2�  � � � � ��&�/�4� � � �F�����8�����r

ZeroDay Forums Mini