mirror of https://github.com/python/cpython
gh-124405: Fix `NameError` in `openpty` (#124406)
This commit is contained in:
parent
b4d0d7de0f
commit
17b3bc9cc7
|
@ -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…
Reference in New Issue