Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python38/lib64/python3.8/urllib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python38/lib64/python3.8/urllib/__pycache__/response.cpython-38.pyc
U

��,a��@s^dZddlZddddgZGdd�dej�ZGdd�de�ZGd	d�de�ZGd
d�de�ZdS)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�addclosehook�addinfo�
addinfourlcs8eZdZdZ�fdd�Zdd�Zdd�Zdd	�Z�ZS)
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__��4/opt/alt/python38/lib64/python3.8/urllib/response.pyrszaddbase.__init__cCsd|jjt|�|jfS)Nz<%s at %r whose fp = %r>)r�__name__�id�file�r
r
r
r�__repr__s�zaddbase.__repr__cCs|jjrtd��|S)NzI/O operation on closed file)r	�closed�
ValueErrorrr
r
r�	__enter__szaddbase.__enter__cCs|��dS�N)�close)r
�type�value�	tracebackr
r
r�__exit__!szaddbase.__exit__)	r�
__module__�__qualname__�__doc__rrrr�
__classcell__r
r
rrrs
cs,eZdZdZ�fdd�Z�fdd�Z�ZS)rz*Class to add a close hook to an open file.cs tt|��|�||_||_dSr)rrr�	closehook�hookargs)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(eZdZdZ�fdd�Zdd�Z�ZS)rz.class to add an info() method to an open file.cstt|��|�||_dSr)rrr�headers)r
r	r#rr
rr<szaddinfo.__init__cCs|jSr)r#rr
r
r�info@szaddinfo.info)rrrrrr$r r
r
rrr9scs2eZdZdZd	�fdd�	Zdd�Zdd�Z�ZS)
rz9class to add info() and geturl() methods to an open file.Ncs"tt|��||�||_||_dSr)rrr�url�code)r
r	r#r%r&rr
rrGszaddinfourl.__init__cCs|jSr)r&rr
r
r�getcodeLszaddinfourl.getcodecCs|jSr)r%rr
r
r�geturlOszaddinfourl.geturl)N)rrrrrr'r(r r
r
rrrDs)rZtempfile�__all__Z_TemporaryFileWrapperrrrrr
r
r
r�<module>s

ZeroDay Forums Mini