gh-124405: Fix `NameError` in `openpty` (#124406)

This commit is contained in:
sobolevn 2024-09-24 21:06:39 +03:00 committed by GitHub
parent b4d0d7de0f
commit 17b3bc9cc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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