Hacked By AnonymousFox

Current Path : /proc/thread-self/root/proc/self/root/opt/alt/python36/lib64/python3.6/urllib/__pycache__/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/opt/alt/python36/lib64/python3.6/urllib/__pycache__/error.cpython-36.pyc

3

� fQ
�@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	�1/opt/alt/python36/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

&

Hacked By AnonymousFox1.0, Coded By AnonymousFox