AlkantarClanX12
Current Path : /proc/thread-self/root/opt/alt/python33/lib64/python3.3/urllib/__pycache__/ |
Current File : //proc/thread-self/root/opt/alt/python33/lib64/python3.3/urllib/__pycache__/error.cpython-33.pyo |
� ��f c @ 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( u� 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. i Nu URLErroru HTTPErroru ContentTooShortErrorc B s/ | Ee Z d Z d d d � Z d d � Z d S( u URLErrorc C s1 | f | _ | | _ | d k r- | | _ n d S( N( u argsu reasonu Noneu filename( u selfu reasonu filename( ( u1 /opt/alt/python33/lib64/python3.3/urllib/error.pyu __init__ s u URLError.__init__c C s d | j S( Nu <urlopen error %s>( u reason( u self( ( u1 /opt/alt/python33/lib64/python3.3/urllib/error.pyu __str__# s u URLError.__str__N( u __name__u __module__u __qualname__u Noneu __init__u __str__( u __locals__( ( u1 /opt/alt/python33/lib64/python3.3/urllib/error.pyu URLError s c B s_ | Ee Z d Z d Z e j j j Z d d � Z d d � Z e d d � � Z d d � Z d S( u HTTPErroruB Raised when HTTP error occurs, but also acts like non-error returnc C sV | | _ | | _ | | _ | | _ | | _ | d k rR | j | | | | � n d S( N( u codeu msgu hdrsu fpu filenameu Noneu _HTTPError__super_init( u selfu urlu codeu msgu hdrsu fp( ( u1 /opt/alt/python33/lib64/python3.3/urllib/error.pyu __init__* s u HTTPError.__init__c C s d | j | j f S( Nu HTTP Error %s: %s( u codeu msg( u self( ( u1 /opt/alt/python33/lib64/python3.3/urllib/error.pyu __str__7 s u HTTPError.__str__c C s | j S( N( u msg( u self( ( u1 /opt/alt/python33/lib64/python3.3/urllib/error.pyu reason<