Skip to content

Commit

Permalink
pythongh-124405: Fix NameError in openpty (python#124406)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Sep 24, 2024
1 parent b4d0d7d commit 17b3bc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/pty.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17b3bc9

Please sign in to comment.