Hacked By AnonymousFox

Current Path : /opt/alt/python311/lib64/python3.11/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/encodings/__pycache__/uu_codec.cpython-311.opt-1.pyc

�

c��f#���dZddlZddlZddlmZdd�Zdd�ZGd	�d
ej��ZGd�dej��ZGd
�dej	��Z	Gd�deej
��Z
Gd�deej��Zd�ZdS)aPython 'uu_codec' Codec - UU content transfer encoding.

This codec de/encodes from bytes to bytes.

Written by Marc-Andre Lemburg (mal@lemburg.com). Some details were
adapted from uu.py which was written by Lance Ellinghouse and
modified by Jack Jansen and Fredrik Lundh.
�N)�BytesIO�strict�<data>�c���t|��}t��}|j}|j}|�dd��}|�dd��}|d|dz|fz�d����|d��}|r*|tj|����|d��}|�*|d	��|���t|��fS)
N�
z\n�
z\rzbegin %o %s
i��ascii�-s 
end
)	r�read�write�replace�encode�binascii�b2a_uu�getvalue�len)	�input�errors�filename�mode�infile�outfilerr
�chunks	         �9/opt/alt/python311/lib64/python3.11/encodings/uu_codec.py�	uu_encoders���
�U�^�^�F��i�i�G��;�D��M�E�����U�+�+�H�����U�+�+�H�
�E�?�d�U�l�H�5�5�
=�
=�g�
F�
F�G�G�G��D��H�H�E�
��
��h�o�e�$�$�%�%�%���R������
�E�+����������E�
�
�+�+�c�"�t|��}t��}|j}|j}	|��}|std���|dd�dkrn�+	|��}|r|dkrnq	t	j|��}nO#tj$r=}|ddz
d	zd
zdzdz}	t	j|d|	���}Yd}~nd}~wwxYw||����|std���|���t|��fS)
N�z"Missing "begin" line in input data�sbeginTsend
r� �?��zTruncated input data)	r�readliner
�
ValueErrorr�a2b_uu�Errorrr)
rrrrr%r
�s�data�v�nbytess
          r�	uu_decoder-%sL��
�U�^�^�F��i�i�G���H��M�E���H�J�J���	C��A�B�B�B��R�a�R�5�H�������H�J�J���	�A��M�M��	/��?�1�%�%�D�D���~�	/�	/�	/��!��R��2�~��*�Q�.�1�4�F��?�1�W�f�W�:�.�.�D�D�D�D�D�D�����	/����
	��d�����
�1��/�0�0�0�������E�
�
�+�+s�-B�C�3C	�	Cc��eZdZdd�Zdd�ZdS)�Codecrc�"�t||��S�N)r��selfrrs   rrzCodec.encodeG������'�'�'rc�"�t||��Sr1)r-r2s   r�decodezCodec.decodeJr4rN�r)�__name__�
__module__�__qualname__rr6�rrr/r/Fs<������(�(�(�(�(�(�(�(�(�(rr/c��eZdZdd�ZdS)�IncrementalEncoderFc�8�t||j��dS�Nr)rr�r3r�finals   rrzIncrementalEncoder.encodeN�������,�,�Q�/�/rN�F)r8r9r:rr;rrr=r=M�(������0�0�0�0�0�0rr=c��eZdZdd�ZdS)�IncrementalDecoderFc�8�t||j��dSr?)r-rr@s   rr6zIncrementalDecoder.decodeRrBrNrC)r8r9r:r6r;rrrFrFQrDrrFc��eZdZeZdS)�StreamWriterN�r8r9r:�bytes�charbuffertyper;rrrIrIU��������N�N�NrrIc��eZdZeZdS)�StreamReaderNrJr;rrrOrOXrMrrOc
�v�tjdtttt
ttd���S)N�uuF)�namerr6�incrementalencoder�incrementaldecoder�streamreader�streamwriter�_is_text_encoding)�codecs�	CodecInforr-r=rFrOrIr;rr�getregentryrZ]s4����
���-�-�!�!��	�	�	�	r)rrrr7)
�__doc__rXr�iorrr-r/r=rFrIrOrZr;rr�<module>r]s[�����
�
�
�����������,�,�,�,�*,�,�,�,�B(�(�(�(�(�F�L�(�(�(�0�0�0�0�0��2�0�0�0�0�0�0�0�0��2�0�0�0������5�&�-���������5�&�-����

�
�
�
�
r

Hacked By AnonymousFox1.0, Coded By AnonymousFox