Server IP : 149.255.58.128 / Your IP : 216.73.216.153
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /usr/lib64/python3.9/urllib/__pycache__//response.cpython-39.pyc
a
�DOg9 � @ sZ d Z ddlZg d�ZG dd� dej�ZG dd� de�ZG dd � d e�ZG d
d� de�ZdS )a Response 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�
addinfourlc s8 e Zd ZdZ� fdd�Zdd� Zdd� Zdd � Z� ZS )
r zOBase class for addinfo and addclosehook. Is a good idea for garbage collection.c s t t| �j|ddd� || _d S )Nz<urllib response>F)�delete)�superr �__init__�fp)�selfr �� __class__� �'/usr/lib64/python3.9/urllib/response.pyr s zaddbase.__init__c C s d| j jt| �| jf S )Nz<%s at %r whose fp = %r>)r �__name__�id�file�r
r
r
r �__repr__ s
�zaddbase.__repr__c C s | j jrtd��| S )NzI/O operation on closed file)r �closed�
ValueErrorr r
r
r � __enter__ s zaddbase.__enter__c C s | � � d S �N)�close)r
�type�value� tracebackr
r
r �__exit__! s zaddbase.__exit__) r �
__module__�__qualname__�__doc__r r r r �
__classcell__r
r
r r r s
r c s, e Zd ZdZ� fdd�Z� fdd�Z� ZS )r z*Class to add a close hook to an open file.c s t t| ��|� || _|| _d S r )r r r � closehook�hookargs)r
r r! r"