Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/input/__pycache__/posix_utils.cpython-39.pyc
Ðазад
a d�h� � @ s@ d dl mZ d dlZd dlZd dlmZ dgZG dd� d�ZdS )� )�annotationsN)�getincrementaldecoder�PosixStdinReaderc @ s8 e Zd ZdZdddddd�dd �Zdddd�dd �ZdS )r a� Wrapper around stdin which reads (nonblocking) the next available 1024 bytes and decodes it. Note that you can't be sure that the input file is closed if the ``read`` function returns an empty string. When ``errors=ignore`` is passed, ``read`` can return an empty string if all malformed input was replaced by an empty string. (We can't block here and wait for more input.) So, because of that, check the ``closed`` attribute, to be sure that the file has been closed. :param stdin_fd: File descriptor from which we read. :param errors: Can be 'ignore', 'strict' or 'replace'. On Python3, this can be 'surrogateescape', which is the default. 'surrogateescape' is preferred, because this allows us to transfer unrecognized bytes to the key bindings. Some terminals, like lxterminal and Guake, use the 'Mxx' notation to send mouse events, where each 'x' can be any possible byte. �surrogateescape�utf-8�int�str�None)�stdin_fd�errors�encoding�returnc C s. || _ || _t|�| _| j|d�| _d| _d S )N)r F)r r r Z_stdin_decoder_cls�_stdin_decoder�closed)�selfr r r � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/input/posix_utils.py�__init__&