Your IP : 3.17.175.167


Current Path : /opt/alt/python35/lib64/python3.5/urllib/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/urllib/__pycache__/error.cpython-35.opt-2.pyc



���]Q
�@sjddlZdddgZGdd�de�ZGdd�deejj�ZGdd�de�ZdS)�N�URLError�	HTTPError�ContentTooShortErrorc@s+eZdZddd�Zdd�ZdS)rNcCs.|f|_||_|dk	r*||_dS)N)�args�reason�filename)�selfrr�r	�*/opt/alt/python35/lib64/python3.5/error.py�__init__s	zURLError.__init__cCsd|jS)Nz<urlopen error %s>)r)rr	r	r
�__str__szURLError.__str__)�__name__�
__module__�__qualname__rrr	r	r	r
rsc@s|eZdZejjjZdd�Zdd�Zdd�Z	e
dd��Ze
d	d
��Zej
dd
��ZdS)
rcCsS||_||_||_||_||_|dk	rO|j||||�dS)N)�code�msg�hdrs�fpr�_HTTPError__super_init)rZurlrrrrr	r	r
r's					zHTTPError.__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�urllib�response�
addinfourlrrrr�propertyrr�setterr	r	r	r
r#s
c@seZdZdd�ZdS)rcCstj||�||_dS)N)rr�content)r�messagerr	r	r
rKszContentTooShortError.__init__N)r
rrrr	r	r	r
rIs)	Zurllib.responser�__all__�OSErrorrrrrrr	r	r	r
�<module>s&

?>