| Server IP : 118.27.122.248 / Your IP : 216.73.216.15 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python36/lib64/python3.6/test/__pycache__/ |
Upload File : |
3
x2_� � @ s� d Z ddlZddlmZ ddlZddlZddlZdZdZG dd� dej �Z
dd � ZG d
d� dej�Z
G dd
� d
ej�ZG dd� dej�Zdd� Zedkr�e� dS )z%
Tests for uu module.
Nick Mathewson
� N)�supports5 The smooth-scaled python crept over the sleeping dog
sK M5&AE('-M;V]T:"US8V%L960@<'ET:&]N(&-R97!T(&]V97(@=&AE('-L965P
(:6YG(&1O9PH c s* e Zd ZdZd
� fdd� Zdd � Z� ZS )�FakeIOz�Text I/O implementation using an in-memory buffer.
Can be a used as a drop-in replacement for sys.stdin and sys.stdout.
� �utf-8�strict�
c sV t t| �jtj� |||d� || _|| _|rRt|t�s>t|�}| j |� | j
d� d S )N)�encoding�errors�newliner )�superr �__init__�io�BytesIO� _encoding�_errors�
isinstance�str�write�seek)�selfZ
initial_valuer r r
)� __class__� �1/opt/alt/python36/lib64/python3.6/test/test_uu.pyr s
zFakeIO.__init__c C s | j � | jj� j| j| j�S )N)�flush�buffer�getvalue�decoder r )r r r r r * s zFakeIO.getvalue)r r r r )�__name__�
__module__�__qualname__�__doc__r r �
__classcell__r r )r r r s
r c C s t d| |f d�t d S )Nzbegin %03o %s
�asciis
end
)�bytes�encodedtext)�mode�filenamer r r �encodedtextwrapped/ s r'