HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //proc/3158922/root/lib/python3.10/urllib/__pycache__/response.cpython-310.pyc
o

p̦i9	�@sZdZddlZgd�ZGdd�dej�ZGdd�de�ZGdd	�d	e�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.10/urllib/response.pyrs
zaddbase.__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__!szaddbase.__exit__)	r�
__module__�__qualname__�__doc__rrrr�
__classcell__r
r
rrrsrcs,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(s
zaddclosehook.__init__c	s^z&|j}|j}|rd|_d|_||�Wtt|���dSWtt|���dStt|���wr)r!r"rrr)r
r!r"rr
rr-s
�"zaddclosehook.close)rrrrrrr r
r
rrr%srcs(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<s
zaddinfo.__init__cC�|jSr)r#rr
r
r�info@�zaddinfo.info)rrrrrr%r r
r
rrr9srcs>eZdZdZd�fdd�	Zedd��Zdd�Zd	d
�Z�Z	S)rz9class to add info() and geturl() methods to an open file.Ncs"tt|��||�||_||_dSr)rrr�url�code)r
r	r#r'r(rr
rrGs
zaddinfourl.__init__cCr$r�r(rr
r
r�statusLszaddinfourl.statuscCr$rr)rr
r
r�getcodePr&zaddinfourl.getcodecCr$r)r'rr
r
r�geturlSr&zaddinfourl.geturlr)
rrrrr�propertyr*r+r,r r
r
rrrDs
r)r�tempfile�__all__�_TemporaryFileWrapperrrrrr
r
r
r�<module>s