%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/
Upload File :
Create Path :
Current File : //opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyc

�
�A�[c@`s�dZddlmZmZmZddlmZdefd��YZdefd��YZdefd	��YZ	d
efd��YZ
[[[[dS(
uResponse classes used by urllib.

The base class, addbase, defines a minimal file-like interface,
including read() and readline().  The typical response object is an
addinfourl instance, which defines an info() method that returns
headers and a geturl() method that returns the url.
i(tabsolute_importtdivisiontunicode_literals(tobjecttaddbasecB`sDeZdZd�Zd�Zd�Zd�Zd�Zd�ZRS(u(Base class for addinfo and addclosehook.cC`s||_|jj|_|jj|_t|jd�rK|jj|_nt|jd�ro|jj|_nd�|_dS(Nu	readlinesufilenocS`sdS(N(tNone(((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyt<lambda>t(tfptreadtreadlinethasattrt	readlinestfileno(tselfR((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyt__init__s	cC`s
t|j�S(N(titerR(R((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyt__iter__scC`s d|jjt|�|jfS(Nu<%s at %r whose fp = %r>(t	__class__t__name__tidR(R((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyt__repr__%scC`s\|jr|jj�nd|_d|_d|_d|_d|_d|_d|_dS(N(	RtcloseRR	R
RR
Rt__next__(R((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyR)s							cC`s"|jdkrtd��n|S(NuI/O operation on closed file(RRt
ValueError(R((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyt	__enter__4scC`s|j�dS(N(R(Rttypetvaluet	traceback((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyt__exit__9s(	Rt
__module__t__doc__RRRRRR(((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyRs	
				taddclosehookcB`s eZdZd�Zd�ZRS(u*Class to add a close hook to an open file.cG`s&tj||�||_||_dS(N(RRt	closehookthookargs(RRR!R"((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyR?s	cC`s?|jr.|j|j�d|_d|_ntj|�dS(N(R!R"RRR(R((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyRDs
		(RRRRR(((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyR <s	taddinfocB`s eZdZd�Zd�ZRS(u.class to add an info() method to an open file.cC`stj||�||_dS(N(RRtheaders(RRR$((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyRNscC`s|jS(N(R$(R((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pytinfoRs(RRRRR%(((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyR#Ks	t
addinfourlcB`s5eZdZdd�Zd�Zd�Zd�ZRS(u9class to add info() and geturl() methods to an open file.cC`s/tj||�||_||_||_dS(N(RRR$turltcode(RRR$R'R(((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyRXs		cC`s|jS(N(R$(R((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyR%^scC`s|jS(N(R((R((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pytgetcodeascC`s|jS(N(R'(R((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pytgeturldsN(RRRRRR%R)R*(((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyR&Us
		N(Rt
__future__RRRtfuture.builtinsRRR R#R&(((sQ/opt/alt/python27/lib/python2.7/site-packages/future/backports/urllib/response.pyt<module>s1


Zerion Mini Shell 1.0