Your IP : 3.138.142.146


Current Path : /opt/alt/python313/lib64/python3.13/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib64/python3.13/__pycache__/_compression.cpython-313.opt-2.pyc

�

+}g1���SSKrSSKr\Rr"SS\R5r"SS\R5rg)�Nc�,�\rSrSrSrSrSrSrSrg)�
BaseStream�	c�<�UR(a[S5eg)NzI/O operation on closed file)�closed�
ValueError��selfs �3/opt/alt/python313/lib64/python3.13/_compression.py�_check_not_closed�BaseStream._check_not_closeds���;�;��;�<�<��c�Z�UR5(d[R"S5eg)NzFile not open for reading)�readable�io�UnsupportedOperationr	s r�_check_can_read�BaseStream._check_can_read�$���}�}����)�)�*E�F�F�rc�Z�UR5(d[R"S5eg)NzFile not open for writing)�writablerrr	s r�_check_can_write�BaseStream._check_can_writerrc��UR5(d[R"S5eUR5(d[R"S5eg)Nz3Seeking is only supported on files open for readingz3The underlying file object does not support seeking)rrr�seekabler	s r�_check_can_seek�BaseStream._check_can_seeksS���}�}����)�)�+F�G�
G��}�}����)�)�+E�F�
F�r�N)	�__name__�
__module__�__qualname__�__firstlineno__rrrr�__static_attributes__rrrrr	s��=�G�G�Frrc�^�\rSrSrSrS
SjrU4SjrSrSrSSjr	Sr
S	r\R4S
jrSrSrU=r$)�DecompressReader�!c��g)NTrr	s rr�DecompressReader.readable$s��rc��XlSUlSUlSUlX lX@lUR"S0UR
D6UlX0lg)NFr���r)�_fp�_eof�_pos�_size�_decomp_factory�_decomp_args�
_decompressor�_trailing_error)r
�fp�decomp_factory�trailing_error�decomp_argss     r�__init__�DecompressReader.__init__'sP������	���	���
� .��'��!�1�1�F�D�4E�4E�F��� .�rc�.>�SUl[TU]	5$�N)r1�super�close)r
�	__class__s �rr<�DecompressReader.close;s���!����w�}��rc�6�URR5$r:)r+rr	s rr�DecompressReader.seekable?s���x�x� � �"�"rc��[U5o"RS5nUR[U55nXCS[U5&SSS5 SSS5 [W5$!,(df   N!=f!,(df   N*=f)N�B)�
memoryview�cast�read�len)r
�b�view�	byte_view�datas     r�readinto�DecompressReader.readintoBsU��
��]�d�I�I�c�N�i��9�9�S��^�,�D�$(�j�s�4�y�!�%3�]��4�y��%3�N��]�]�s"�A1�(A �A1� 
A.	�*A1�1
A?c�8�US:aUR5$U(aUR(agSnURR(a�URR=(d UR
R
[5nU(dO�UR"S0URD6UlURRX15nOjURR(a2UR
R
[5nU(d[S5eOSnURRX15nU(aOGMU(dSUlURUlgU=R[!U5-
slU$!URa MSf=f)NrrTzACompressed file ended before the end-of-stream marker was reachedr)�readallr,r1�eof�unused_datar+rE�BUFFER_SIZEr/r0�
decompressr2�needs_input�EOFErrorr-r.rF)r
�sizerJ�rawblocks    rrE�DecompressReader.readHsX���!�8��<�<�>�!��t�y�y������!�!�%�%� �.�.�:�:�7� �H�H�M�M�+�6����%)�%9�%9�&)��'�'�&)��"���-�-�8�8��H�D�
�%�%�1�1�#�x�x�}�}�[�9�H�#�&�(J�K�K�$� #�H��)�)�4�4�X�D����1�2��D�I����D�J���	�	�S��Y��	����'�+�+����s�4F�F�Fc���/nUR[R5=n(a9URU5 UR[R5=n(aM9SR	U5$)Nr)rE�sys�maxsize�append�join)r
�chunksrJs   rrN�DecompressReader.readallqsX�����i�i����,�,�d�,��M�M�$���i�i����,�,�d�,��x�x���rc��URRS5 SUlSUlUR"S0UR
D6Ulg)NrFr)r+�seekr,r-r/r0r1r	s r�_rewind�DecompressReader._rewind|s<�����
�
�a����	���	�!�1�1�F�D�4E�4E�F��rc���U[R:XaO�U[R:XaURU-nO�U[R:XakUR
S:aKUR
[R5(a'UR
[R5(aM'UR
U-nO[SRU55eXR:aUR5 OXR-nUS:�aSUR
[[RU55nU(d
UR$U[U5-nUS:�aMSUR$)NrzInvalid value for whence: {})
r�SEEK_SET�SEEK_CURr-�SEEK_ENDr.rE�DEFAULT_BUFFER_SIZEr�formatra�minrF)r
�offset�whencerJs    rr`�DecompressReader.seek�s���R�[�[� ��
�r�{�{�
"��Y�Y��'�F�
�r�{�{�
"��z�z�A�~��i�i�� 6� 6�7�7���i�i�� 6� 6�7�7��Z�Z�&�(�F��;�B�B�6�J�K�K��I�I���L�L�N��i�i��F��q�j��9�9�S��!7�!7��@�A�D����y�y��
�c�$�i��F�	�q�j��y�y�rc��UR$r:)r-r	s r�tell�DecompressReader.tell�s���y�y�r)r0r/r1r,r+r-r.r2)r)r*)rr r!r"rr7r<rrKrErNrarrdr`rnr#�
__classcell__)r=s@rr%r%!sE����.�(�#��'�R �G�#%�+�+��<�rr%)rrYrgrQ�BufferedIOBaser�	RawIOBaser%rrr�<module>rss>��
�
��$�$��F��"�"�F�0A�r�|�|�Ar

?>