mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-124405: Fix NameError
in openpty
(#124406)
This commit is contained in:
parent
b4d0d7de0f
commit
17b3bc9cc7
1 changed files with 2 additions and 2 deletions
|
@ -39,8 +39,8 @@ def openpty():
|
|||
except ImportError:
|
||||
return master_fd, slave_fd
|
||||
try:
|
||||
ioctl(result, I_PUSH, "ptem")
|
||||
ioctl(result, I_PUSH, "ldterm")
|
||||
ioctl(slave_fd, I_PUSH, "ptem")
|
||||
ioctl(slave_fd, I_PUSH, "ldterm")
|
||||
except OSError:
|
||||
pass
|
||||
return master_fd, slave_fd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue