python (3.11.7)

(root)/
lib/
python3.11/
urllib/
__pycache__/
response.cpython-311.opt-1.pyc

e9	dZddlZgdZGddejZGddeZGdd	eZGd
deZdS)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.
N)addbaseaddclosehookaddinfo
addinfourlc4eZdZdZfdZdZdZdZxZS)rzOBase class for addinfo and addclosehook. Is a good idea for garbage collection.cltt||dd||_dS)Nz<urllib response>F)delete)superr__init__fp)selfr	__class__s  C/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/urllib/response.pyrzaddbase.__init__s4
g&&r+>u&MMMcRd|jjdt|d|jdS)N<z at z whose fp = >)r__name__idfiler
s r__repr__zaddbase.__repr__s3-1^-D-D-D-/XXXXtyyyB	Brc<|jjrtd|S)NzI/O operation on closed file)rclosed
ValueErrorrs r	__enter__zaddbase.__enter__s"7>	=;<<<rc.|dSN)close)r
typevalue	tracebacks    r__exit__zaddbase.__exit__!s

r)	r
__module____qualname____doc__rrrr#
__classcell__rs@rrrsnYY
BBB
rrc,eZdZdZfdZfdZxZS)rz*Class to add a close hook to an open file.cttt||||_||_dSr)r
rr	closehookhookargs)r
rr+r,rs    rrzaddclosehook.__init__(s3
lD!!**2..." 


rc	|j}|j}|rd|_d|_||tt|dS#tt|wxYwr)r+r,r
rr)r
r+r,rs   rrzaddclosehook.close-s}	.I}H
%!% $
	8$$,%%++-----E,%%++----s#A)A8)rr$r%r&rrr'r(s@rrr%sW44!!!!!
	.	.	.	.	.	.	.	.	.rrc(eZdZdZfdZdZxZS)rz.class to add an info() method to an open file.cftt||||_dSr)r
rrheaders)r
rr0rs   rrzaddinfo.__init__<s,
gt%%b)))rc|jSr)r0rs rinfozaddinfo.info@s
|r)rr$r%r&rr2r'r(s@rrr9sM88rrcFeZdZdZdfd	ZedZdZdZxZ	S)rz9class to add info() and geturl() methods to an open file.Ncvtt|||||_||_dSr)r
rrurlcode)r
rr0r5r6rs     rrzaddinfourl.__init__Gs5
j$((W555			rc|jSrr6rs rstatuszaddinfourl.statusLs
yrc|jSrr8rs rgetcodezaddinfourl.getcodePs
yrc|jSr)r5rs rgeturlzaddinfourl.geturlSs	xrr)
rr$r%r&rpropertyr9r;r=r'r(s@rrrDs|CC
Xrr)r&tempfile__all___TemporaryFileWrapperrrrrrr<module>rCs
>
>
>h,......7...(gr