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:
|
except ImportError:
|
||||||
return master_fd, slave_fd
|
return master_fd, slave_fd
|
||||||
try:
|
try:
|
||||||
ioctl(result, I_PUSH, "ptem")
|
ioctl(slave_fd, I_PUSH, "ptem")
|
||||||
ioctl(result, I_PUSH, "ldterm")
|
ioctl(slave_fd, I_PUSH, "ldterm")
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
return master_fd, slave_fd
|
return master_fd, slave_fd
|
||||||
|
|
Loading…
Reference in New Issue