HEX
Server: Apache
System: Linux www3.pit.tblive.com 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User: awaldron (1020)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/local/lib/python3.9/site-packages/future/backports/urllib/__pycache__/response.cpython-39.pyc
a

F�Egl�@spdZddlmZmZmZddlmZGdd�de�ZGdd�de�ZGdd	�d	e�Z	Gd
d�de�Z
[[[[dS)
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.
�)�absolute_import�division�unicode_literals)�objectc@s@eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dS)�addbasez(Base class for addinfo and addclosehook.cCsV||_|jj|_|jj|_t|jd�r0|jj|_t|jd�rH|jj|_n
dd�|_dS)N�	readlines�filenocSsdS�N�r
r
r
�J/usr/local/lib/python3.9/site-packages/future/backports/urllib/response.py�<lambda>�z"addbase.__init__.<locals>.<lambda>)�fp�read�readline�hasattrrr)�selfrr
r
r�__init__s


zaddbase.__init__cCs
t|j�Sr	)�iterr�rr
r
r�__iter__szaddbase.__iter__cCsd|jjt|�|jfS)Nz<%s at %r whose fp = %r>)�	__class__�__name__�idrrr
r
r�__repr__%s
�zaddbase.__repr__cCs>|jr|j��d|_d|_d|_d|_d|_d|_d|_dSr	)r�closerrrrr�__next__rr
r
rr)s
z
addbase.closecCs|jdurtd��|S)NzI/O operation on closed file)r�
ValueErrorrr
r
r�	__enter__4s
zaddbase.__enter__cCs|��dSr	)r)r�type�value�	tracebackr
r
r�__exit__9szaddbase.__exit__N)
r�
__module__�__qualname__�__doc__rrrrrr"r
r
r
rrs
rc@s eZdZdZdd�Zdd�ZdS)�addclosehookz*Class to add a close hook to an open file.cGst�||�||_||_dSr	)rr�	closehook�hookargs)rrr'r(r
r
rr?szaddclosehook.__init__cCs,|jr|j|j�d|_d|_t�|�dSr	)r'r(rrrr
r
rrDs
zaddclosehook.closeN)rr#r$r%rrr
r
r
rr&<sr&c@s eZdZdZdd�Zdd�ZdS)�addinfoz.class to add an info() method to an open file.cCst�||�||_dSr	)rr�headers)rrr*r
r
rrNszaddinfo.__init__cCs|jSr	�r*rr
r
r�infoRszaddinfo.infoN)rr#r$r%rr,r
r
r
rr)Ksr)c@s2eZdZdZddd�Zdd�Zdd�Zd	d
�ZdS)�
addinfourlz9class to add info() and geturl() methods to an open file.NcCs"t�||�||_||_||_dSr	)rrr*�url�code)rrr*r.r/r
r
rrXszaddinfourl.__init__cCs|jSr	r+rr
r
rr,^szaddinfourl.infocCs|jSr	)r/rr
r
r�getcodeaszaddinfourl.getcodecCs|jSr	)r.rr
r
r�geturldszaddinfourl.geturl)N)rr#r$r%rr,r0r1r
r
r
rr-Us

r-N)r%�
__future__rrrZfuture.builtinsrrr&r)r-r
r
r
r�<module>s1