https://github.com/python/cpython/commit/17b3bc9cc7608920077f5f08f970c7157a2d2e72
commit: 17b3bc9cc7608920077f5f08f970c7157a2d2e72
branch: main
author: sobolevn <[email protected]>
committer: ambv <[email protected]>
date: 2024-09-24T20:06:39+02:00
summary:

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

files:
M Lib/pty.py

diff --git a/Lib/pty.py b/Lib/pty.py
index eb3d5f1ff657bb..4b25ac32c8da14 100644
--- a/Lib/pty.py
+++ b/Lib/pty.py
@@ -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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to