File "response.cpython-34.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python34/lib64/python3.4/urllib/__pycache__/response.cpython-34.pyc
File size: 3.32 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit


e f@sdZddlZddddgZGdddejZGdddeZGd	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
addinfourlcsLeZdZdZfddZddZddZdd	ZS)
rzOBase class for addinfo and addclosehook. Is a good idea for garbage collection.cs,tt|j|ddd||_dS)Nz<urllib response>ZdeleteF)superr__init__fp)selfr)	__class__4/opt/alt/python34/lib64/python3.4/urllib/response.pyrszaddbase.__init__cCs d|jjt||jfS)Nz<%s at %r whose fp = %r>)r
__name__idfile)r	rrr__repr__szaddbase.__repr__cCs|jjrtdn|S)NzI/O operation on closed file)rclosed
ValueError)r	rrr	__enter__szaddbase.__enter__cCs|jdS)N)close)r	typevalue	tracebackrrr__exit__!szaddbase.__exit__)r

__module____qualname____doc__rrrrrr)r
rrs
cs:eZdZdZfddZfddZS)rz*Class to add a close hook to an open file.cs,tt|j|||_||_dS)N)rrr	closehookhookargs)r	rrr)r
rrr(s	zaddclosehook.__init__csVz;|j}|j}|r:d|_d|_||nWdtt|jXdS)N)rrrrr)r	rr)r
rrr-s				zaddclosehook.close)r
rrrrrrr)r
rr%scs4eZdZdZfddZddZS)rz.class to add an info() method to an open file.cs#tt|j|||_dS)N)rrrheaders)r	rr)r
rrr<szaddinfo.__init__cCs|jS)N)r)r	rrrinfo@szaddinfo.info)r
rrrrrrr)r
rr9scsCeZdZdZdfddZddZddZS)	rz9class to add info() and geturl() methods to an open file.Ncs/tt|j||||_||_dS)N)rrrurlcode)r	rrr r!)r
rrrGs	zaddinfourl.__init__cCs|jS)N)r!)r	rrrgetcodeLszaddinfourl.getcodecCs|jS)N)r )r	rrrgeturlOszaddinfourl.geturl)r
rrrrr"r#rr)r
rrDs)rZtempfile__all__Z_TemporaryFileWrapperrrrrrrrr<module>s