MINI MINI MANI MO
3
  \Q
  ã               @   sP   d Z ddlZdddgZG dd„ deƒZG dd„ deejjƒZG dd„ 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               @   s   e Zd Zddd„Zdd„ ZdS )r   Nc             C   s    |f| _ || _|d k	r|| _d S )N)ÚargsÚreasonÚfilename)Úselfr   r   © r	   ú$/usr/lib64/python3.6/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__)N)Ú__name__Ú
__module__Ú__qualname__r   r   r	   r	   r	   r
   r      s   
c               @   sX   e Zd ZdZejjjZdd„ Zdd„ Z	dd„ Z
edd	„ ƒZed
d„ ƒZ
e
jdd„ ƒZ
d
S )r   zBRaised when HTTP error occurs, but also acts like non-error returnc             C   s:   || _ || _|| _|| _|| _|d k	r6| j||||ƒ d S )N)ÚcodeÚmsgÚhdrsÚfpr   Ú_HTTPError__super_init)r   Zurlr   r   r   r   r	   r	   r
   r   '   s    zHTTPError.__init__c             C   s   d| j | jf S )NzHTTP Error %s: %s)r   r   )r   r	   r	   r
   r   4   s    zHTTPError.__str__c             C   s   d| j | jf S )Nz<HTTPError %s: %r>)r   r   )r   r	   r	   r
   Ú__repr__7   s    zHTTPError.__repr__c             C   s   | j S )N)r   )r   r	   r	   r
   r   <