File "error.cpython-36.opt-1.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/lib64/python3.6/urllib/__pycache__/error.cpython-36.opt-1.pyc
File size: 2.69 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit

3


 \Q
@sPdZddlZdddgZGdddeZGdddeejjZGdddeZ	dS)	aException 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.
NURLError	HTTPErrorContentTooShortErrorc@seZdZdddZddZdS)rNcCs |f|_||_|dk	r||_dS)N)argsreasonfilename)selfrrr	$/usr/lib64/python3.6/urllib/error.py__init__szURLError.__init__cCs
d|jS)Nz<urlopen error %s>)r)rr	r	r
__str__szURLError.__str__)N)__name__
__module____qualname__rrr	r	r	r
rs
c@sXeZdZdZejjjZddZddZ	ddZ
edd	Zed
dZ
e
jddZ
d
S)rzBRaised when HTTP error occurs, but also acts like non-error returncCs:||_||_||_||_||_|dk	r6|j||||dS)N)codemsghdrsfpr_HTTPError__super_init)rZurlrrrrr	r	r
r'szHTTPError.__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__doc__urllibresponse
addinfourlrrrrpropertyrrsetterr	r	r	r
r#s

c@seZdZdZddZdS)rzDException raised when downloaded size does not match content-length.cCstj||||_dS)N)rrcontent)rmessagerr	r	r
rKszContentTooShortError.__init__N)r
rrrrr	r	r	r
rIs)
rZurllib.responser__all__OSErrorrrrrrr	r	r	r
<module>s

&