File "error.cpython-35.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python35/lib64/python3.5/urllib/__pycache__/error.cpython-35.pyc
File size: 2.85 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit



YfQ
@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@s+eZdZdddZddZdS)rNcCs.|f|_||_|dk	r*||_dS)N)argsreasonfilename)selfrrr	1/opt/alt/python35/lib64/python3.5/urllib/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@seZdZdZejjjZddZddZ	ddZ
edd	Zed
dZ
e
jddZ
d
S)rzBRaised when HTTP error occurs, but also acts like non-error returncCsS||_||_||_||_||_|dk	rO|j||||dS)N)codemsghdrsfpr_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__doc__urllibresponse
addinfourlrrrrpropertyrrsetterr	r	r	r
r#s
c@s"eZdZdZddZdS)rzDException raised when downloaded size does not match content-length.cCstj||||_dS)N)rrcontent)rmessagerr	r	r
rKszContentTooShortError.__init__N)r
rrrrr	r	r	r
rIs)
rZurllib.responser__all__OSErrorrrrrrr	r	r	r
<module>s
&