Your IP : 18.220.110.45


Current Path : /lib64/python3.8/urllib/__pycache__/
Upload File :
Current File : //lib64/python3.8/urllib/__pycache__/response.cpython-38.opt-2.pyc

U

e5d��@sZddlZddddgZGdd�dej�ZGdd�de�ZGdd�de�ZGd	d�de�ZdS)
�N�addbase�addclosehook�addinfo�
addinfourlcs4eZdZ�fdd�Zdd�Zdd�Zdd�Z�ZS)	rcs tt|�j|ddd�||_dS)Nz<urllib response>F)�delete)�superr�__init__�fp)�selfr	��	__class__��'/usr/lib64/python3.8/urllib/response.pyrszaddbase.__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__!szaddbase.__exit__)r�
__module__�__qualname__rrrr�
__classcell__r
r
rrrscs(eZdZ�fdd�Z�fdd�Z�ZS)rcs tt|��|�||_||_dSr)rrr�	closehook�hookargs)r
r	r r!rr
rr(szaddclosehook.__init__c	s>z(|j}|j}|r&d|_d|_||�W5tt|���XdSr)rrrr r!)r
r r!rr
rr-szaddclosehook.close)rrrrrrr
r
rrr%scs$eZdZ�fdd�Zdd�Z�ZS)rcstt|��|�||_dSr)rrr�headers)r
r	r"rr
rr<szaddinfo.__init__cCs|jSr)r"rr
r
r�info@szaddinfo.info)rrrrr#rr
r
rrr9scs.eZdZd�fdd�	Zdd�Zdd�Z�ZS)	rNcs"tt|��||�||_||_dSr)rrr�url�code)r
r	r"r$r%rr
rrGszaddinfourl.__init__cCs|jSr)r%rr
r
r�getcodeLszaddinfourl.getcodecCs|jSr)r$rr
r
r�geturlOszaddinfourl.geturl)N)rrrrr&r'rr
r
rrrDs)Ztempfile�__all__Z_TemporaryFileWrapperrrrrr
r
r
r�<module>	s


?>