Spade

Mini Shell

Directory:~$ /lib/python2.7/site-packages/future/backports/urllib/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ //lib/python2.7/site-packages/future/backports/urllib/error.pyc

�
,�]c@`s�dZddlmZmZmZddlmZddlmZ	dddgZ
defd	��YZd
ee	j
fd��YZdefd
��YZdS(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(tabsolute_importtdivisiontunicode_literals(tstandard_library(tresponseuURLErroru	HTTPErroruContentTooShortErrortURLErrorcB`seZdd�Zd�ZRS(cC`s1|f|_||_|dk	r-||_ndS(N(targstreasontNonetfilename(tselfRR	((sA/usr/lib/python2.7/site-packages/future/backports/urllib/error.pyt__init__
s	cC`sd|jS(Nu<urlopen error %s>(R(R
((sA/usr/lib/python2.7/site-packages/future/backports/urllib/error.pyt__str__&sN(t__name__t
__module__RRR(((sA/usr/lib/python2.7/site-packages/future/backports/urllib/error.pyRst	HTTPErrorcB`sDeZdZejjZd�Zd�Zed��Z	d�Z
RS(uBRaised when HTTP error occurs, but also acts like non-error
returncC`sV||_||_||_||_||_|dk	rR|j||||�ndS(N(tcodetmsgthdrstfpR	Rt_HTTPError__super_init(R
turlRRRR((sA/usr/lib/python2.7/site-packages/future/backports/urllib/error.pyR-s					cC`sd|j|jfS(NuHTTP
Error %s: %s(RR(R
((sA/usr/lib/python2.7/site-packages/future/backports/urllib/error.pyR:scC`s|jS(N(R(R
((sA/usr/lib/python2.7/site-packages/future/backports/urllib/error.pyR?scC`s|jS(N(R(R
((sA/usr/lib/python2.7/site-packages/future/backports/urllib/error.pytinfoCs(R
Rt__doc__turllib_responset
addinfourlRRRtpropertyRR(((sA/usr/lib/python2.7/site-packages/future/backports/urllib/error.pyR)s	
	tContentTooShortErrorcB`seZd�ZRS(cC`stj||�||_dS(N(RRtcontent(R
tmessageR((sA/usr/lib/python2.7/site-packages/future/backports/urllib/error.pyRIs(R
RR(((sA/usr/lib/python2.7/site-packages/future/backports/urllib/error.pyRHsN(Rt
__future__RRRtfutureRtfuture.backports.urllibRRt__all__tIOErrorRRRR(((sA/usr/lib/python2.7/site-packages/future/backports/urllib/error.pyt<module>s