| Server IP : 159.253.20.91 / Your IP : 216.73.216.111 Web Server : nginx/1.20.2 System : Linux se38c9e53.fastvps-server.com 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 User : pr11_ru_usr ( 1041) PHP Version : 8.1.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/encodings/__pycache__/ |
Upload File : |
a
��;`# � @ s� d Z ddlZddlZddlmZ ddd�Zdd d
�ZG dd� dej�ZG d
d� dej�ZG dd� dej �Z G dd� deej
�Z
G dd� deej�Zdd� 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)�BytesIO�strict�<data>� c C s� |dksJ �t | �}t � }|j}|j}|�dd�}|�dd�}|d|d@ |f �d�� |d �}|r||t�|�� |d �}q`|d
� |�� t| �fS )Nr �
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 �(/usr/lib/python3.9/encodings/uu_codec.py� uu_encode s
r c
C s� |dksJ �t | �}t � }|j}|j}|� }|s8td��|d d� dkr&qLq&|� }|r�|dkr`q�zt�|�}W nT tjy� } z:|d d d@ d d d
} t�|d | � �}W Y d }~n
d }~0 0 ||� qL|s�td��|�� t| �fS )Nr z"Missing "begin" line in input data� s begins 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% s, (
r'