Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/future/backports/urllib/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/future/backports/urllib/__pycache__/response.cpython-311.pyc

�

�܋fl���dZddlmZmZmZddlmZGd�de��ZGd�de��ZGd�d	e��Z	Gd
�de��Z
[[[[dS)
aResponse 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.
�)�absolute_import�division�unicode_literals)�objectc�6�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	dS)	�addbasez(Base class for addinfo and addclosehook.c��||_|jj|_|jj|_t|jd��r|jj|_t|jd��r|jj|_dSd�|_dS)N�	readlines�filenoc��dS�N�r��q/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/future/backports/urllib/response.py�<lambda>z"addbase.__init__.<locals>.<lambda>s��$�r)�fp�read�readline�hasattrr
r)�selfrs  r�__init__zaddbase.__init__sp������G�L��	���(��
��4�7�K�(�(�	/�!�W�.�D�N��4�7�H�%�%�	'��'�.�D�K�K�K�&�,�D�K�K�Krc�*�t|j��Sr
)�iterr�rs r�__iter__zaddbase.__iter__s���D�G�}�}�rc�R�d|jj�dt|���d|j�d�S)N�<z at z whose fp = �>)�	__class__�__name__�idrrs r�__repr__zaddbase.__repr__%s3���-1�^�-D�-D�-D�-/��X�X�X�X�t�w�w�w�@�	@rc��|jr|j���d|_d|_d|_d|_d|_d|_d|_dSr
)r�closerrr
rr�__next__rs rr$z
addbase.close)sP���7�	��G�M�M�O�O�O������	���
���������
���
�
�
rc�2�|j�td���|S)NzI/O operation on closed file)r�
ValueErrorrs r�	__enter__zaddbase.__enter__4s���7�?��;�<�<�<��rc�.�|���dSr
)r$)r�type�value�	tracebacks    r�__exit__zaddbase.__exit__9s���
�
�����rN)
r �
__module__�__qualname__�__doc__rrr"r$r(r-rrrrrsw������2�2�'�'�'����@�@�@�	�	�	����
����rrc��eZdZdZd�Zd�ZdS)�addclosehookz*Class to add a close hook to an open file.c�X�t�||��||_||_dSr
)rr�	closehook�hookargs)rrr4r5s    rrzaddclosehook.__init__?s*������r�"�"�"�"��� ��
�
�
rc��|jr|j|j�d|_d|_t�|��dSr
)r4r5rr$rs rr$zaddclosehook.closeDsC���>�	!��D�N�D�M�*�*�!�D�N� �D�M��
�
�d�����rN)r r.r/r0rr$rrrr2r2<s8������4�4�!�!�!�
����rr2c��eZdZdZd�Zd�ZdS)�addinfoz.class to add an info() method to an open file.c�J�t�||��||_dSr
)rr�headers)rrr:s   rrzaddinfo.__init__Ns#������r�"�"�"�����rc��|jSr
�r:rs r�infozaddinfo.infoR�
���|�rN)r r.r/r0rr=rrrr8r8Ks8������8�8��������rr8c�,�eZdZdZdd�Zd�Zd�Zd�ZdS)�
addinfourlz9class to add info() and geturl() methods to an open file.Nc�f�t�||��||_||_||_dSr
)rrr:�url�code)rrr:rBrCs     rrzaddinfourl.__init__Xs1������r�"�"�"���������	�	�	rc��|jSr
r<rs rr=zaddinfourl.info^r>rc��|jSr
)rCrs r�getcodezaddinfourl.getcodeas
���y�rc��|jSr
)rBrs r�geturlzaddinfourl.geturlds	���x�rr
)r r.r/r0rr=rFrHrrrr@r@Us[������C�C���������������rr@N)r0�
__future__rrr�future.builtinsrrr2r8r@rrr�<module>rKs�����C�B�B�B�B�B�B�B�B�B�"�"�"�"�"�"�/�/�/�/�/�f�/�/�/�b
�
�
�
�
�7�
�
�
������g�������������$�X�/���r

Hacked By AnonymousFox1.0, Coded By AnonymousFox