File: //proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/uu.cpython-311.pyc
�
    �gYh�  �                   �   � d Z ddlZddlZddlZddlZ ej        ed��  �         g d�Z G d� de�  �        Z	ddd	�d
�Z
dd�Zd� Zed
k    r e�   �          dS dS )z�Implementation of the UUencode and UUdecode functions.
encode(in_file, out_file [,name, mode], *, backtick=False)
decode(in_file [, out_file, mode, quiet])
�    N)�   �
   )�remove)�Error�encode�decodec                   �   � e Zd ZdS )r   N)�__name__�
__module__�__qualname__� �    �)/opt/alt/python311/lib64/python3.11/uu.pyr   r   )   s   � � � � � ��Dr   r   F��backtickc                �r  � g }	 | dk    rt           j        j        } n�t          | t          �  �        rs|�t
          j        �                    | �  �        }|�+	 t          j        | �  �        j	        }n# t          $ r Y nw xY wt          | d�  �        } |�                    | �  �         |dk    rt           j
        j        }n:t          |t          �  �        r%t          |d�  �        }|�                    |�  �         |�d}|�d}|�                    dd�  �        }|�                    dd	�  �        }|�                    d
|dz  |fz  �                    d�  �        �  �         | �                    d
�  �        }t%          |�  �        dk    rQ|�                    t'