Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/ptyprocess/__pycache__/ptyprocess.cpython-39.pyc
Ðазад
a ^�h�{ � @ sh d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl Z d dlZzd dlZW n e y� d dlZY n0 d dlmZmZ ddlmZmZ e j�� Ze�d�p�e�d�Zer�dZddlmZ nd Ze jd d kZer�dd� Zn(d d� ZG dd� de�Z G dd� de�Z!d\a"a#dd� Z$dd� Z%dd� Z&G dd� de'�Z(G dd� de(�Z)dS )� N)�STDIN_FILENO�CHILD� )�which�PtyProcessError�solaris�sunosF)� _fork_ptyT� c C s t | g�S �N)�bytes��i� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/ptyprocess/ptyprocess.py�_byte( s r c C s t | �S r )�chrr r r r r + s c @ s e Zd ZdS )�FileNotFoundErrorN��__name__� __module__�__qualname__r r r r r . � r c @ s e Zd ZdS )�TimeoutErrorNr r r r r r / r r )NNc C s, t durtdurdS z�ddlm} m} d}dD ]L}ttd| d�}|du s.t|d�sVq.z|�� }W q. t yx Y q.Y q.0 q.|du r�t d��t t�|�d | �}t t�|�d | �}W n\ tt tt tjf�y zdd lm}m} || }}W n t�y d \}}Y n0 Y n0 t|�at|�a dS )zkSet constants _EOF and _INTR. This avoids doing potentially costly operations on module load. Nr )�VEOF�VINTR)�stdin�stdoutz__%s__�filenozNo stream has a fileno� )�CEOF�CINTR)r � )�_EOF�_INTR�termiosr r �getattr�sys�hasattrr � ValueError�ord� tcgetattr�ImportError�OSError�IOError�errorr r! r ) r r �fd�name�streamZintr�eofr r! r r r �_make_eof_intr3 s2 r4 c C s d}zt �| �}W nV t jyh } z<|jd tjkrRt|jd d|jd |f ��� W Y d }~n d }~0 0 |r�|d t jB |d<