AlkantarClanX12

Your IP : 18.225.95.229


Current Path : /opt/alt/python310/lib64/python3.10/urllib/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/urllib/__pycache__/response.cpython-310.opt-2.pyc

o

6��f9	�@sX	ddlZgd�ZGdd�dej�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZdS)�N)�addbase�addclosehook�addinfo�
addinfourlcs6eZdZ	�fdd�Zdd�Zdd�Zdd�Z�ZS)	rcs tt|�j|ddd�||_dS)Nz<urllib response>F)�delete)�superr�__init__�fp)�selfr	��	__class__��6/opt/alt/python310/lib64/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__rrrr�
__classcell__r
r
rrrsrcs*eZdZ	�fdd�Z�fdd�Z�ZS)rcs 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
rrr%srcs&eZdZ	�fdd�Zdd�Z�ZS)rcstt|��|�||_dSr)rrr�headers)r
r	r"rr
rr<s
zaddinfo.__init__cC�|jSr)r"rr
r
r�info@�zaddinfo.info)rrrrr$rr
r
rrr9srcs<eZdZ	d
�fdd�	Zedd��Zdd�Zdd	�Z�ZS)rNcs"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)	rrrr�propertyr)r*r+rr
r
rrrDs
r)Ztempfile�__all__Z_TemporaryFileWrapperrrrrr
r
r
r�<module>s