Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium163.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : infihsqw ( 644)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /lib64/python3.8/urllib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python3.8/urllib/__pycache__/error.cpython-38.opt-1.pyc
U

e5dH
�@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.8/urllib/error.py�__init__szURLError.__init__cCs
d|jS)Nz<urlopen error %s>)r�r	r
r
r�__str__szURLError.__str__)N)�__name__�
__module__�__qualname__rrr
r
r
rrs
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|�||||�dSr)�code�msg�hdrs�fpr�_HTTPError__super_init)r	Zurlrrrrr
r
rr'szHTTPError.__init__cCsd|j|jfS)NzHTTP Error %s: %s�rrr
r
r
rr4szHTTPError.__str__cCsd|j|jfS)Nz<HTTPError %s: %r>rr
r
r
r�__repr__7szHTTPError.__repr__cCs|jSr)rr
r
r
rr<szHTTPError.reasoncCs|jSr�rr
r
r
r�headers@szHTTPError.headerscCs
||_dSrr)r	rr
r
rrDsN)rrr�__doc__�urllib�response�
addinfourlrrrr�propertyrr�setterr
r
r
rr#s



c@seZdZdZdd�ZdS)rzDException raised when downloaded size does not match content-length.cCst�||�||_dSr)rr�content)r	�messager!r
r
rrKszContentTooShortError.__init__N)rrrrrr
r
r
rrIs)
rZurllib.responser�__all__�OSErrorrrrrrr
r
r
r�<module>s


&

ZeroDay Forums Mini