Your IP : 3.145.76.111


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

�

+}g1���SrSSKrSSKr\Rr"SS\R
5r"SS\R5rg)z7Internal classes used by the gzip, lzma and bz2 modules�Nc�0�\rSrSrSrSrSrSrSrSr	g)	�
BaseStream�	zMode-checking helper functions.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__�__doc__rrrr�__static_attributes__rrrrr	s��)�=�G�G�Frrc�^�\rSrSrSrSrSSjrU4SjrSrSr	SSjr
S	rS
r\
R4SjrSrS
rU=r$)�DecompressReader�!z5Adapts the decompressor API to a RawIOBase reader APIc��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)r2�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-r2�eof�unused_datar,rF�BUFFER_SIZEr0r1�
decompressr3�needs_input�EOFErrorr.r/rG)r
�sizerK�rawblocks    rrF�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)rF�sys�maxsize�append�join)r
�chunksrKs   rrO�DecompressReader.readallqsX�����i�i����,�,�d�,��M�M�$���i�i����,�,�d�,��x�x���rc��URRS5 SUlSUlUR"S0UR
D6Ulg)NrFr)r,�seekr-r.r0r1r2r	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/rF�DEFAULT_BUFFER_SIZEr�formatrb�minrG)r
�offset�whencerKs    rra�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$)z!Return the current file position.)r.r	s r�tell�DecompressReader.tell�s���y�y�r)r1r0r2r-r,r.r/r3)r)r+)rr r!r"r#rr8r=rrLrFrOrbrreraror$�
__classcell__)r>s@rr&r&!sH���?��.�(�#��'�R �G�#%�+�+��<�rr&)	r#rrZrhrR�BufferedIOBaser�	RawIOBaser&rrr�<module>rts?��=�	�
��$�$��F��"�"�F�0A�r�|�|�Ar

?>