| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/urllib/__pycache__/ |
Upload File : |
�
���g� � � � d dl Z g d�Z G d� de j � Z G d� de� Z G d� de� Z G d � d
e� Zy)� N)�addbase�addclosehook�addinfo�
addinfourlc �2 � � e Zd Z � fd�Zd� Zd� Zd� Z� xZS )r c �@ �� t t | � |dd�� || _ y )Nz<urllib response>F)�delete)�superr �__init__�fp)�selfr � __class__s ��$C:\Python312\\Lib\urllib\response.pyr zaddbase.__init__ s! �� �
�g��&�r�+>�u�&�M���� c �h � d| j j �dt | � �d| j �d�S )N�<z at z whose fp = �>)r �__name__�id�file�r
s r �__repr__zaddbase.__repr__ s( � �-1�^�^�-D�-D�-/��X�t�y�y�B� Br c �H � | j j rt d� �| S )NzI/O operation on closed file)r �closed�
ValueErrorr s r � __enter__zaddbase.__enter__ s � ��7�7�>�>��;�<�<��r c �$ � | j � y �N)�close)r
�type�value� tracebacks r �__exit__zaddbase.__exit__! s � ��
�
�r )r �
__module__�__qualname__r r r r# �
__classcell__�r s @r r r s �� �Y��
B��
r r c �* � � e Zd Z � fd�Z� fd�Z� xZS )r c �H �� t t | � |� || _ || _ y r )r
r r � closehook�hookargs)r
r r* r+ r s �r r zaddclosehook.__init__( s �� �
�l�D�*�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 r r&