Hacked By AnonymousFox
��YfQ
� @ sp d Z d d l Z d d d g Z Gd d � d e � Z Gd d � d e e j j � Z Gd d � d e � Z d S) 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 @ s+ e Z d Z d d d � Z d d � Z d S)r Nc C s. | f | _ | | _ | d k r* | | _ d S)N)�args�reason�filename)�selfr r � r �1/opt/alt/python35/lib64/python3.5/urllib/error.py�__init__ s zURLError.__init__c C s d | j S)Nz<urlopen error %s>)r )r r r r
�__str__ s zURLError.__str__)�__name__�
__module__�__qualname__r r r r r r
r s c @ s� e Z d Z d Z e j j j Z d d � Z d d � Z d d � Z
e d d � � Z e d
d � � Z
e
j d d � � Z
d
S)r zBRaised when HTTP error occurs, but also acts like non-error returnc C sS | | _ | | _ | | _ | | _ | | _ | d k rO | j | | | | � d S)N)�code�msg�hdrs�fpr �_HTTPError__super_init)r Zurlr r r r r r r
r '