HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //snap/core20/current/lib/python3.8/encodings/__pycache__/uu_codec.cpython-38.pyc
U

yi#�@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�|dkst�t|�}t�}|j}|j}|�dd�}|�dd�}|d|d@|f�d��|d	�}|r||t�|��|d	�}q`|d
�|��t	|�fS)Nr�
z\n�
z\rzbegin %o %s
i��ascii�-s 
end
)
�AssertionErrorr�read�write�replace�encode�binasciiZb2a_uu�getvalue�len)	�input�errors�filename�mode�infile�outfilerr�chunk�r�(/usr/lib/python3.8/encodings/uu_codec.py�	uu_encodes
rc

Cs�|dkst�t|�}t�}|j}|j}|�}|s8td��|dd�dkr&qLq&|�}|r�|dkr`q�zt�|�}WnRtjk
r�}z2|ddd@d	dd
}	t�|d|	��}W5d}~XYnX||�qL|s�td��|��t	|�fS)Nrz"Missing "begin" line in input data�sbeginsend
r� �?��zTruncated input data)
r
r�readliner�
ValueErrorrZa2b_uu�Errorrr)
rrrrr!r�s�data�v�nbytesrrr�	uu_decode%s,$
r(c@s eZdZddd�Zddd�ZdS)	�CodecrcCs
t||�S�N)r��selfrrrrrrGszCodec.encodecCs
t||�Sr*)r(r+rrr�decodeJszCodec.decodeN)r)r)�__name__�
__module__�__qualname__rr-rrrrr)Fs
r)c@seZdZddd�ZdS)�IncrementalEncoderFcCst||j�dS�Nr)rr�r,r�finalrrrrNszIncrementalEncoder.encodeN)F)r.r/r0rrrrrr1Msr1c@seZdZddd�ZdS)�IncrementalDecoderFcCst||j�dSr2)r(rr3rrrr-RszIncrementalDecoder.decodeN)F)r.r/r0r-rrrrr5Qsr5c@seZdZeZdS)�StreamWriterN�r.r/r0�bytes�charbuffertyperrrrr6Usr6c@seZdZeZdS)�StreamReaderNr7rrrrr:Xsr:c
Cstjdttttttdd�S)N�uuF)�namerr-�incrementalencoder�incrementaldecoder�streamreader�streamwriter�_is_text_encoding)�codecs�	CodecInforr(r1r5r:r6rrrr�getregentry]s�rD)rrr)r)
�__doc__rBr�iorrr(r)r1r5r6r:rDrrrr�<module>s	

!