python (3.12.0)
ˑe d Z ddlmZ ddlZddlZddlZddlmZmZ ddlmZmZm Z g dZ
dZdZdZ
dZd Zd
Zd Zd Zd
Zd ZeefdZeefdZy)zPseudo terminal utilities. )selectN)closewaitpid)setraw tcgetattr tcsetattr)openptyforkspawn c t j S # t t f$ r Y nw xY wt \ } }t | }| |fS )zdopenpty() -> (master_fd, slave_fd)
Open a pty master/slave pair, using os.openpty() if possible.)osr AttributeErrorOSError_open_terminal
slave_open) master_fd
slave_nameslave_fds 7/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/pty.pyr r sL
zz|G$
*,Iz*%Hhs ((c ddl } | j dt d t j \ }}t j
| }t j | ||fS # t t f$ r Y t S w xY w)zmaster_open() -> (master_fd, slave_name)
Open a pty master and return the fd, and the filename of the slave end.
Deprecated, use openpty() instead.r NUse pty.openpty() instead.r
stacklevel)
warningswarnDeprecationWarningr r ttynamer r r r )r r r r s r master_openr &