Your IP : 13.59.130.154
o
6��f# � @ s� d dl Z d dlZd dlmZ ddd�Zddd �ZG d
d� de j�ZG dd
� d
e j�ZG dd� de j�ZG dd� dee j �Z G dd� dee j
�Z
dd� ZdS )� N)�BytesIO�strict�<data>� c C s� t | �}t � }|j}|j}|�dd�}|�dd�}|d|d@ |f �d�� |d�}|r9|t�|�� |d�}|s,|d � |�� t| �fS )
N�
z\n�
z\rzbegin %o %s
i� �ascii�- s
end
) r �read�write�replace�encode�binasciiZb2a_uu�getvalue�len) �input�errors�filename�mode�infile�outfiler
r �chunk� r �9/opt/alt/python310/lib64/python3.10/encodings/uu_codec.py� uu_encode s �r c
C s� t | �}t � }|j}|j} |� }|std��|d d� dkr nq |� }|r+|dkr,n7zt�|�}W n* tjy] } z|d d d @ d
d d } t�|d | � �}W Y d }~nd }~ww ||� q"|sitd��|�� t| �fS )
N� z"Missing "begin" line in input data� s beginTs end
r � �? � � zTruncated input data) r �readliner �
ValueErrorr Za2b_uu�Errorr r )
r r r r r! r �s�data�v�nbytesr r r � uu_decode% s6 ����r( c @ s e Zd Zddd�Zddd�ZdS )�Codecr c C �
t ||�S �N)r ��selfr r r r r r
G �
zCodec.encodec C r* r+ )r( r, r r r �decodeJ r. zCodec.decodeN�r )�__name__�
__module__�__qualname__r
r/ r r r r r) F s
r) c @ � e Zd Zddd�ZdS )�IncrementalEncoderFc C � t || j�d S �Nr )r r �r- r �finalr r r r
N � zIncrementalEncoder.encodeN�F)r1 r2 r3 r
r r r r r5 M � r5 c @ r4 )�IncrementalDecoderFc C r6 r7 )r( r r8 r r r r/ R r: zIncrementalDecoder.decodeNr; )r1 r2 r3 r/ r r r r r= Q r<