Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/output/__pycache__/plain_text.cpython-39.pyc
Ðазад
a d�h� � @ sz d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z ddl mZ ddlm Z dd lmZ d gZG dd � d e�ZdS ) � )�annotations)�TextIO)�CursorShape��Size)�Attrs� )�Output)� ColorDepth)�flush_stdout�PlainTextOutputc @ s$ e Zd ZdZddd�dd�Zdd�d d �Zdd�dd �Zddd�dd�Zddd�dd�Zddd�dd�Z dd�dd�Z dd�dd�Zdd�dd�Zdd�dd�Z dd�dd�Zdd�d d!�Zdd�d"d#�Zdd�d$d%�Zdd�d&d'�Zdd�d(d)�Zd*d+dd,�d-d.�Zdd�d/d0�Zdd�d1d2�Zd\dddd4�d5d6�Zddd7�d8d9�Zddd7�d:d;�Zddd7�d<d=�Zddd7�d>d?�Zdd�d@dA�Zdd�dBdC�ZdDddE�dFdG�Zdd�dHdI�Zdd�dJdK�Z dd�dLdM�Z!dd�dNdO�Z"dd�dPdQ�Z#dd�dRdS�Z$dTd�dUdV�Z%dd�dWdX�Z&d+d�dYdZ�Z'd[S )]r aR Output that won't include any ANSI escape sequences. Useful when stdout is not a terminal. Maybe stdout is redirected to a file. In this case, if `print_formatted_text` is used, for instance, we don't want to include formatting. (The code is mostly identical to `Vt100_Output`, but without the formatting.) r �None)�stdout�returnc s* t � fdd�dD ��sJ �� | _g | _d S )Nc 3 s | ]}t � |�V qd S �N)�hasattr)�.0�a�r � ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/output/plain_text.py� <genexpr> � z+PlainTextOutput.__init__.<locals>.<genexpr>)�write�flush)�allr �_buffer)�selfr r r r �__init__ s zPlainTextOutput.__init__�int)r c C s | j �� S )z*There is no sensible default for fileno().)r �fileno�r r r r r "