Edit File: response.cpython-311.opt-1.pyc
� �����f9 ����������������������������d�Z�ddlZg�d�Z�G�d��dej��������������������Z�G�d��de������������Z�G�d��d e������������Z�G�d ��de������������ZdS�)a��Response 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. �����N)�addbase�addclosehook�addinfo� addinfourlc��������������������4�������e�Zd�ZdZ��fd�Zd��Zd��Zd��Z��xZS�)r���zOBase class for addinfo and addclosehook. Is a good idea for garbage collection.c������������������l������t����������t����������|����������������������������������|dd��������������||�_��������d�S�)Nz<urllib response>F)�delete)�superr����__init__�fp)�selfr���� __class__s��� ��6/opt/alt/python311/lib64/python3.11/urllib/response.pyr���zaddbase.__init__���s4������� �g����&�&�r�+>�u�&�M�M�M����������c������������������R�����d|�j���������j���������dt����������|��������������d|�j���������d�S�)N�<z at z whose fp = �>)r����__name__�id�file�r ���s��� r����__repr__zaddbase.__repr__���s3��������-1�^�-D�-D�-D�-/��X�X�X�X�t�y�y�y�B�� Br���c������������������<�����|�j���������j��������rt����������d�������������|�S�)NzI/O operation on closed file)r����closed� ValueErrorr���s��� r���� __enter__zaddbase.__enter__���s"�������7�>�� =��;�<�<�<��r���c������������������.�����|��������������������������������������d�S��N)�close)r ����type�value� tracebacks��� r����__exit__zaddbase.__exit__!���s������� � �����r���) r���� __module__�__qualname__�__doc__r���r���r���r#���� __classcell__�r���s���@r���r���r������sn���������������Y�Y���������� B��B��B������ ������������r���r���c��������������������,�������e�Zd�ZdZ��fd�Z��fd�Z��xZS�)r���z*Class to add a close hook to an open file.c������������������t������t����������t����������|����������������������������������|�������������||�_��������||�_��������d�S�r���)r ���r���r���� closehook�hookargs)r ���r���r+���r,���r���s��� �r���r���zaddclosehook.__init__(���s3������� �l�D�!�!�*�*�2�.�.�.�"��� �� � � r���c������������������������ �|�j���������}|�j��������}|rd�|�_���������d�|�_���������||���t����������t����������|�������������������������������������������������d�S�#�t����������t����������|�������������������������������������������������w�xY�wr���)r+���r,���r ���r���r���)r ���r+���r,���r���s��� �r���r���zaddclosehook.close-���s}������� .���I��}�H��� %�!%��� $�� �� �8�$�$��,��%�%�+�+�-�-�-�-�-��E�,��%�%�+�+�-�-�-�-���s����#A��)A8)r���r$���r%���r&���r���r���r'���r(���s���@r���r���r���%���sW���������������4�4�!��!��!��!��!� .�� .�� .�� .�� .�� .�� .�� .�� .r���r���c��������������������(�������e�Zd�ZdZ��fd�Zd��Z��xZS�)r���z.class to add an info() method to an open file.c������������������f������t����������t����������|����������������������������������|�������������||�_��������d�S�r���)r ���r���r����headers)r ���r���r0���r���s��� �r���r���zaddinfo.__init__<���s,������� �g�t���%�%�b�)�)�)�����r���c�����������������������|�j���������S�r���)r0���r���s��� r����infozaddinfo.info@���s �������|�r���)r���r$���r%���r&���r���r2���r'���r(���s���@r���r���r���9���sM���������������8�8����������������������r���r���c��������������������F�������e�Zd�ZdZd��fd� Zed����������������Zd��Zd��Z��xZ S�)r���z9class to add info() and geturl() methods to an open file.Nc������������������v������t����������t����������|����������������������������������||�������������||�_��������||�_��������d�S�r���)r ���r���r����url�code)r ���r���r0���r5���r6���r���s��� �r���r���zaddinfourl.__init__G���s5������� �j�$���(�(��W�5�5�5������ � � r���c�����������������������|�j���������S�r����r6���r���s��� r����statuszaddinfourl.statusL���s �������y�r���c�����������������������|�j���������S�r���r8���r���s��� r����getcodezaddinfourl.getcodeP���s �������y�r���c�����������������������|�j���������S�r���)r5���r���s��� r����geturlzaddinfourl.geturlS���s �������x�r���r���) r���r$���r%���r&���r����propertyr9���r;���r=���r'���r(���s���@r���r���r���D���s|���������������C�C������������ �������X�������������������r���r���)r&����tempfile�__all__�_TemporaryFileWrapperr���r���r���r�����r���r����<module>rC������s�������������� >� >� >�����������h�,�������..��.��.��.��.�7��.��.��.�(���������g��������������������������r���