Your IP : 3.144.37.178
o
6��f9 � @ sX d dl Z g d�ZG dd� de j�ZG dd� de�ZG dd� de�ZG d d
� d
e�ZdS )� N)�addbase�addclosehook�addinfo�
addinfourlc s6 e Zd Z � fdd�Zdd� Zdd� Zdd� Z� ZS ) r c s t t| �j|ddd� || _d S )Nz<urllib response>F)�delete)�superr �__init__�fp)�selfr �� __class__� �6/opt/alt/python310/lib64/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__�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__r r r r �
__classcell__r
r
r r r s r c s* e Zd Z � fdd�Z� fdd�Z� ZS )r c s t t| ��|� || _|| _d S r )r r r � closehook�hookargs)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 % s r c s&