Hacked By AnonymousFox

Current Path : /opt/alt/python37/lib/python3.7/site-packages/future/backports/urllib/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/future/backports/urllib/__pycache__/error.cpython-37.pyc

B

�A�[�
�@srdZddlmZmZmZddlmZddlmZ	dddgZ
Gdd�de�ZGd	d�dee	j
�ZGd
d�de�ZdS)a�Exception classes raised by urllib.

The base exception class is URLError, which inherits from IOError.  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.
�)�absolute_import�division�unicode_literals)�standard_library)�response�URLError�	HTTPError�ContentTooShortErrorc@seZdZddd�Zdd�ZdS)rNcCs |f|_||_|dk	r||_dS)N)�args�reason�filename)�selfrr�r�N/opt/alt/python37/lib/python3.7/site-packages/future/backports/urllib/error.py�__init__ szURLError.__init__cCs
d|jS)Nz<urlopen error %s>)r)r
rrr�__str__&szURLError.__str__)N)�__name__�
__module__�__qualname__rrrrrrrs
c@s<eZdZdZejjZdd�Zdd�Ze	dd��Z
dd	�Zd
S)rzBRaised when HTTP error occurs, but also acts like non-error returncCs:||_||_||_||_||_|dk	r6|�||||�dS)N)�code�msg�hdrs�fpr�_HTTPError__super_init)r
�urlrrrrrrrr-szHTTPError.__init__cCsd|j|jfS)NzHTTP Error %s: %s)rr)r
rrrr:szHTTPError.__str__cCs|jS)N)r)r
rrrr?szHTTPError.reasoncCs|jS)N)r)r
rrr�infoCszHTTPError.infoN)rrr�__doc__�urllib_response�
addinfourlrrr�propertyrrrrrrr)s
c@seZdZdd�ZdS)r	cCst�||�||_dS)N)rr�content)r
�messager rrrrIszContentTooShortError.__init__N)rrrrrrrrr	HsN)r�
__future__rrr�futurerZfuture.backports.urllibrr�__all__�IOErrorrrrr	rrrr�<module>s


Hacked By AnonymousFox1.0, Coded By AnonymousFox