HEX
Server: Apache/2.4.62 (Debian)
System: Linux MIA-VPS-VM01781 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64
User: webmaster (1001)
PHP: 8.2.29
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //lib/python3.7/urllib/__pycache__/response.cpython-37.pyc
B

U��e��@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__��%/usr/lib/python3.7/urllib/response.pyrszaddbase.__init__cCsd|jjt|�|jfS)Nz<%s at %r whose fp = %r>)r�__name__�id�file)r
rrr
�__repr__szaddbase.__repr__cCs|jjrtd��|S)NzI/O operation on closed file)r	�closed�
ValueError)r
r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)rr
rs
cs,eZdZdZ�fdd�Z�fdd�Z�ZS)rz*Class to add a close hook to an open file.cs tt|��|�||_||_dS)N)rrr�	closehook�hookargs)r
r	rr)rrr
r(szaddclosehook.__init__c	s>z(|j}|j}|r&d|_d|_||�Wdtt|���XdS)N)rrrrr)r
rr)rrr
r-szaddclosehook.close)rrrrrrrrr)rr
r%scs(eZdZdZ�fdd�Zdd�Z�ZS)rz.class to add an info() method to an open file.cstt|��|�||_dS)N)rrr�headers)r
r	r )rrr
r<szaddinfo.__init__cCs|jS)N)r )r
rrr
�info@szaddinfo.info)rrrrrr!rrr)rr
r9scs2eZdZdZd	�fdd�	Zdd�Zdd�Z�ZS)
rz9class to add info() and geturl() methods to an open file.Ncs"tt|��||�||_||_dS)N)rrr�url�code)r
r	r r"r#)rrr
rGszaddinfourl.__init__cCs|jS)N)r#)r
rrr
�getcodeLszaddinfourl.getcodecCs|jS)N)r")r
rrr
�geturlOszaddinfourl.geturl)N)rrrrrr$r%rrr)rr
rDs)rZtempfile�__all__Z_TemporaryFileWrapperrrrrrrrr
�<module>s