Current Dir: /snap/core22/2437/usr/lib/python3.10/encodings/__pycache__/

[FILE] aliases.cpython-310.pyc [ edit | delete | rename ]
[FILE] ascii.cpython-310.pyc [ edit | delete | rename ]
[FILE] base64_codec.cpython-310.pyc [ edit | delete | rename ]
[FILE] big5.cpython-310.pyc [ edit | delete | rename ]
[FILE] big5hkscs.cpython-310.pyc [ edit | delete | rename ]
[FILE] bz2_codec.cpython-310.pyc [ edit | delete | rename ]
[FILE] charmap.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp037.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp273.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp424.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp437.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp500.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp720.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp737.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp775.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp850.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp852.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp855.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp856.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp857.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp858.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp860.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp861.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp862.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp863.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp864.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp865.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp866.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp869.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp874.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp875.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp932.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp949.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp950.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp1006.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp1026.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp1125.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp1140.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp1250.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp1251.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp1252.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp1253.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp1254.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp1255.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp1256.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp1257.cpython-310.pyc [ edit | delete | rename ]
[FILE] cp1258.cpython-310.pyc [ edit | delete | rename ]
[FILE] euc_jisx0213.cpython-310.pyc [ edit | delete | rename ]
[FILE] euc_jis_2004.cpython-310.pyc [ edit | delete | rename ]
[FILE] euc_jp.cpython-310.pyc [ edit | delete | rename ]
[FILE] euc_kr.cpython-310.pyc [ edit | delete | rename ]
[FILE] gb2312.cpython-310.pyc [ edit | delete | rename ]
[FILE] gb18030.cpython-310.pyc [ edit | delete | rename ]
[FILE] gbk.cpython-310.pyc [ edit | delete | rename ]
[FILE] hex_codec.cpython-310.pyc [ edit | delete | rename ]
[FILE] hp_roman8.cpython-310.pyc [ edit | delete | rename ]
[FILE] hz.cpython-310.pyc [ edit | delete | rename ]
[FILE] idna.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso2022_jp.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso2022_jp_1.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso2022_jp_2.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso2022_jp_3.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso2022_jp_2004.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso2022_jp_ext.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso2022_kr.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso8859_1.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso8859_2.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso8859_3.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso8859_4.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso8859_5.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso8859_6.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso8859_7.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso8859_8.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso8859_9.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso8859_10.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso8859_11.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso8859_13.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso8859_14.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso8859_15.cpython-310.pyc [ edit | delete | rename ]
[FILE] iso8859_16.cpython-310.pyc [ edit | delete | rename ]
[FILE] johab.cpython-310.pyc [ edit | delete | rename ]
[FILE] koi8_r.cpython-310.pyc [ edit | delete | rename ]
[FILE] koi8_t.cpython-310.pyc [ edit | delete | rename ]
[FILE] koi8_u.cpython-310.pyc [ edit | delete | rename ]
[FILE] kz1048.cpython-310.pyc [ edit | delete | rename ]
[FILE] latin_1.cpython-310.pyc [ edit | delete | rename ]
[FILE] mac_arabic.cpython-310.pyc [ edit | delete | rename ]
[FILE] mac_croatian.cpython-310.pyc [ edit | delete | rename ]
[FILE] mac_cyrillic.cpython-310.pyc [ edit | delete | rename ]
[FILE] mac_farsi.cpython-310.pyc [ edit | delete | rename ]
[FILE] mac_greek.cpython-310.pyc [ edit | delete | rename ]
[FILE] mac_iceland.cpython-310.pyc [ edit | delete | rename ]
[FILE] mac_latin2.cpython-310.pyc [ edit | delete | rename ]
[FILE] mac_roman.cpython-310.pyc [ edit | delete | rename ]
[FILE] mac_romanian.cpython-310.pyc [ edit | delete | rename ]
[FILE] mac_turkish.cpython-310.pyc [ edit | delete | rename ]
[FILE] mbcs.cpython-310.pyc [ edit | delete | rename ]
[FILE] oem.cpython-310.pyc [ edit | delete | rename ]
[FILE] palmos.cpython-310.pyc [ edit | delete | rename ]
[FILE] ptcp154.cpython-310.pyc [ edit | delete | rename ]
[FILE] punycode.cpython-310.pyc [ edit | delete | rename ]
[FILE] quopri_codec.cpython-310.pyc [ edit | delete | rename ]
[FILE] raw_unicode_escape.cpython-310.pyc [ edit | delete | rename ]
[FILE] rot_13.cpython-310.pyc [ edit | delete | rename ]
[FILE] shift_jis.cpython-310.pyc [ edit | delete | rename ]
[FILE] shift_jisx0213.cpython-310.pyc [ edit | delete | rename ]
[FILE] shift_jis_2004.cpython-310.pyc [ edit | delete | rename ]
[FILE] tis_620.cpython-310.pyc [ edit | delete | rename ]
[FILE] undefined.cpython-310.pyc [ edit | delete | rename ]
[FILE] unicode_escape.cpython-310.pyc [ edit | delete | rename ]
[FILE] utf_7.cpython-310.pyc [ edit | delete | rename ]
[FILE] utf_8.cpython-310.pyc [ edit | delete | rename ]
[FILE] utf_8_sig.cpython-310.pyc [ edit | delete | rename ]
[FILE] utf_16.cpython-310.pyc [ edit | delete | rename ]
[FILE] utf_16_be.cpython-310.pyc [ edit | delete | rename ]
[FILE] utf_16_le.cpython-310.pyc [ edit | delete | rename ]
[FILE] utf_32.cpython-310.pyc [ edit | delete | rename ]
[FILE] utf_32_be.cpython-310.pyc [ edit | delete | rename ]
[FILE] utf_32_le.cpython-310.pyc [ edit | delete | rename ]
[FILE] uu_codec.cpython-310.pyc [ edit | delete | rename ]
[FILE] zlib_codec.cpython-310.pyc [ edit | delete | rename ]
[FILE] __init__.cpython-310.pyc [ edit | delete | rename ]

Viewing: /snap/core22/2437/usr/lib/python3.10/encodings/__pycache__/uu_codec.cpython-310.pyc

o

p̦i#�@s�dZddlZddlZddlmZddd�Zdd	d
�ZGdd�dej�ZGd
d�dej�ZGdd�dej	�Z	Gdd�deej
�Z
Gdd�deej�Zdd�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	Cs�|dksJ�t|�}t�}|j}|j}|�dd�}|�dd�}|d|d@|f�d��|d	�}|r?|t�|��|d	�}|s2|d
�|��t|�fS)Nr�
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�chunk�r�)/usr/lib/python3.10/encodings/uu_codec.py�	uu_encodes�rc

Cs�|dksJ�t|�}t�}|j}|j}	|�}|std��|dd�dkr&nq	|�}|r1|dkr2n7zt�|�}Wn*tjyc}z|dd	d
@ddd}	t�|d|	��}WYd}~nd}~ww||�q(|sotd
��|��t|�fS)Nr�z"Missing "begin" line in input data�sbeginTsend
r� �?��zTruncated input data)	r�readliner�
ValueErrorr�a2b_uu�Errorrr)
rrrrr"r�s�data�v�nbytesrrr�	uu_decode%s8����r*c@s eZdZddd�Zddd�ZdS)�CodecrcC�
t||�S�N)r��selfrrrrrr
G�
zCodec.encodecCr,r-)r*r.rrr�decodeJr0zCodec.decodeN�r)�__name__�
__module__�__qualname__r
r1rrrrr+Fs
r+c@�eZdZddd�ZdS)�IncrementalEncoderFcC�t||j�dS�Nr)rr�r/r�finalrrrr
N�zIncrementalEncoder.encodeN�F)r3r4r5r
rrrrr7M�r7c@r6)�IncrementalDecoderFcCr8r9)r*rr:rrrr1Rr<zIncrementalDecoder.decodeNr=)r3r4r5r1rrrrr?Qr>r?c@�eZdZeZdS)�StreamWriterN�r3r4r5�bytes�charbuffertyperrrrrAU�rAc@r@)�StreamReaderNrBrrrrrFXrErFc
Cstjdttttttdd�S)N�uuF)�namer
r1�incrementalencoder�incrementaldecoder�streamreader�streamwriter�_is_text_encoding)�codecs�	CodecInforr*r7r?rFrArrrr�getregentry]s�rP)rrrr2)
�__doc__rNr�iorrr*r+r7r?rArFrPrrrr�<module>s	

!
Upload File: