Spade
Mini Shell
| Directory:~$ /lib/python2.7/site-packages/future/backports/urllib/ |
| [Home] [System Details] [Kill Me] |
�
,�]c@`s�dZddlmZmZmZddlmZdefd��YZdefd��YZdefd ��YZ d
efd��YZ
[[[[dS(
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|_nd�|_dS(Nu readlinesufilenocS`sdS(N(tNone(((sD/usr/lib/python2.7/site-packages/future/backports/urllib/response.pyt<lambda>s(tfptreadtreadlinethasattrt readlinestfileno(tselfR((sD/usr/lib/python2.7/site-packages/future/backports/urllib/response.pyt__init__s cC`s
t|j�S(N(titerR(R
((sD/usr/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
((sD/usr/lib/python2.7/site-packages/future/backports/urllib/response.pyt__repr__%scC`s\|jr|jj�nd|_d|_d|_d|_d|_d|_d|_dS(N( RtcloseRRR RRRt__next__(R
((sD/usr/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
((sD/usr/lib/python2.7/site-packages/future/backports/urllib/response.pyt __enter__4scC`s|j�dS(N(R(R
ttypetvaluet traceback((sD/usr/lib/python2.7/site-packages/future/backports/urllib/response.pyt__exit__9s( Rt
__module__t__doc__RRRRRR(((sD/usr/lib/python2.7/site-packages/future/backports/urllib/response.pyRs
taddclosehookcB`s
eZdZd�Zd�ZRS(u*Class to add a close hook to an open
file.cG`s&tj||�||_||_dS(N(RRt closehookthookargs(R
RR
R!((sD/usr/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
((sD/usr/lib/python2.7/site-packages/future/backports/urllib/response.pyRDs
(RRRRR(((sD/usr/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(R
RR#((sD/usr/lib/python2.7/site-packages/future/backports/urllib/response.pyRNscC`s|jS(N(R#(R
((sD/usr/lib/python2.7/site-packages/future/backports/urllib/response.pytinfoRs(RRRRR$(((sD/usr/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(R
RR#R&R'((sD/usr/lib/python2.7/site-packages/future/backports/urllib/response.pyRXs cC`s|jS(N(R#(R
((sD/usr/lib/python2.7/site-packages/future/backports/urllib/response.pyR$^scC`s|jS(N(R'(R
((sD/usr/lib/python2.7/site-packages/future/backports/urllib/response.pytgetcodeascC`s|jS(N(R&(R
((sD/usr/lib/python2.7/site-packages/future/backports/urllib/response.pytgeturldsN(RRRRRR$R(R)(((sD/usr/lib/python2.7/site-packages/future/backports/urllib/response.pyR%Us
N(Rt
__future__RRRtfuture.builtinsRRRR"R%(((sD/usr/lib/python2.7/site-packages/future/backports/urllib/response.pyt<module>s1