Viewing File: /opt/alt/python-internal/lib64/python3.11/encodings/__pycache__/uu_codec.cpython-311.opt-1.pyc
!A?h# d Z ddlZddlZddlmZ ddZddZ G d d
ej Z G d dej Z G d
dej Z G d deej
Z
G d deej Zd ZdS )a Python '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)BytesIOstrict<data> c t | }t }|j }|j }| dd }| dd } |d|dz |fz d |d }|r* |t j | |d }|* |d | t | fS )
N
z\n
z\rzbegin %o %s
i ascii- s
end
) r readwritereplaceencodebinasciib2a_uugetvaluelen) inputerrorsfilenamemodeinfileoutfiler r
chunks ?/opt/alt/python-internal/lib64/python3.11/encodings/uu_codec.py uu_encoder s
U^^FiiG;DME U++HU++H
E?dUlH55
=
=g
F
FGGGDHHE
hoe$$%%%R
E+E
++ c " t | }t }|j }|j } | }|st d |d d dk rn+ | }|r|dk rnq t j | }nO# t j $ r=}|d dz
d z d
z dz dz } t j |d | }Y d }~nd }~ww xY w || |st d | t | fS )
N z"Missing "begin" line in input data s beginTs end
r ? zTruncated input data) r readliner
ValueErrorr a2b_uuErrorr r )
r r r r r% r
sdatavnbytess
r uu_decoder- % sL
U^^FiiGHMEHJJ CABBBRaR5HHJJ AMM /?1%%DD~ / / /!R2~*Q.14F?1WfW:..DDDDDD /
d
1/000E
++s -B C3C Cc e Zd ZddZddZdS )Codecr c "