CasperSecurity

Current Path : /usr/lib/python3.10/encodings/__pycache__/
Upload File :
Current File : //usr/lib/python3.10/encodings/__pycache__/uu_codec.cpython-310.pyc

o

`�wi#�@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	

!
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY