⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.12
/
urllib
/
__pycache__
/
View File Name :
response.cpython-312.pyc
CRh9 d Z ddlZg dZ G d dej Z G d de Z G d d e Z G d de Zy)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 4 e Zd ZdZ fdZd Zd Zd Z xZS )r zOBase class for addinfo and addclosehook. Is a good idea for garbage collection.c @ t t | |dd || _ y )Nz
F)delete)superr __init__fp)selfr __class__s &/usr/lib/python3.12/urllib/response.pyr zaddbase.__init__ s! g&r+>u&M c h d| j j dt | d| j dS )N
)r __name__idfiler s r __repr__zaddbase.__repr__ s( -1^^-D-D-/XtyyB Br c H | j j rt d | S )NzI/O operation on closed file)r closed ValueErrorr s r __enter__zaddbase.__enter__ s 77>>;<<r c $ | j y N)close)r typevalue tracebacks r __exit__zaddbase.__exit__! s r ) r __module____qualname____doc__r r r r# __classcell__r s @r r r s Y B r r c , e Zd ZdZ fdZ fdZ xZS )r z*Class to add a close hook to an open file.c H t t | | || _ || _ y r )r r r closehookhookargs)r r r+ r, r s r r zaddclosehook.__init__( s lD*2." r c | j }| j }|rd | _ d | _ || t t | y # t t | w xY wr )r+ r, r r r )r r+ r, r s r r zaddclosehook.close- sN .I}}H!% $ 8$,+-E,+-s -A A)r r$ r% r&