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 :  /usr/lib64/python3.6/urllib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python3.6/urllib/__pycache__/error.cpython-36.pyc
3


 \Q
�@sPdZddlZdddgZGdd�de�ZGdd�deejj�ZGdd�de�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@seZdZddd�Zdd�ZdS)rNcCs |f|_||_|dk	r||_dS)N)�args�reason�filename)�selfrr�r	�$/usr/lib64/python3.6/urllib/error.py�__init__szURLError.__init__cCs
d|jS)Nz<urlopen error %s>)r)rr	r	r
�__str__szURLError.__str__)N)�__name__�
__module__�__qualname__rrr	r	r	r
rs
c@sXeZdZdZejjjZdd�Zdd�Z	dd�Z
edd	��Zed
d��Z
e
jdd��Z
d
S)rzBRaised when HTTP error occurs, but also acts like non-error returncCs:||_||_||_||_||_|dk	r6|j||||�dS)N)�code�msg�hdrs�fpr�_HTTPError__super_init)rZurlrrrrr	r	r
r'szHTTPError.__init__cCsd|j|jfS)NzHTTP Error %s: %s)rr)rr	r	r
r4szHTTPError.__str__cCsd|j|jfS)Nz<HTTPError %s: %r>)rr)rr	r	r
�__repr__7szHTTPError.__repr__cCs|jS)N)r)rr	r	r
r<szHTTPError.reasoncCs|jS)N)r)rr	r	r
�headers@szHTTPError.headerscCs
||_dS)N)r)rrr	r	r
rDsN)r
rr�__doc__�urllib�response�
addinfourlrrrr�propertyrr�setterr	r	r	r
r#s

c@seZdZdZdd�ZdS)rzDException raised when downloaded size does not match content-length.cCstj||�||_dS)N)rr�content)r�messagerr	r	r
rKszContentTooShortError.__init__N)r
rrrrr	r	r	r
rIs)
rZurllib.responser�__all__�OSErrorrrrrrr	r	r	r
�<module>s

&
Name
Size
Permissions
Options
__init__.cpython-36.opt-1.pyc
0.119 KB
-rw-r--r--
__init__.cpython-36.opt-2.pyc
0.119 KB
-rw-r--r--
__init__.cpython-36.pyc
0.119 KB
-rw-r--r--
error.cpython-36.opt-1.pyc
2.691 KB
-rw-r--r--
error.cpython-36.opt-2.pyc
2.032 KB
-rw-r--r--
error.cpython-36.pyc
2.691 KB
-rw-r--r--
parse.cpython-36.opt-1.pyc
33.605 KB
-rw-r--r--
parse.cpython-36.opt-2.pyc
24.685 KB
-rw-r--r--
parse.cpython-36.pyc
33.605 KB
-rw-r--r--
request.cpython-36.opt-1.pyc
71.119 KB
-rw-r--r--
request.cpython-36.opt-2.pyc
59.049 KB
-rw-r--r--
request.cpython-36.pyc
71.252 KB
-rw-r--r--
response.cpython-36.opt-1.pyc
3.153 KB
-rw-r--r--
response.cpython-36.opt-2.pyc
2.588 KB
-rw-r--r--
response.cpython-36.pyc
3.153 KB
-rw-r--r--
robotparser.cpython-36.opt-1.pyc
6.888 KB
-rw-r--r--
robotparser.cpython-36.opt-2.pyc
5.55 KB
-rw-r--r--
robotparser.cpython-36.pyc
6.888 KB
-rw-r--r--