mirror of
https://github.com/python/cpython.git
synced 2025-08-23 02:04:56 +00:00
Fix bug #379, reported by Phillip Porch <root@theproch.com>:
openpty(): Fallback code when os.openpty() does not exist attempted to call _slave_open(), which should have been slave_open(). This bug only showed on platforms which do not provide a working openpty() in the C library.
This commit is contained in:
parent
ae96aab1fe
commit
0ea1fc8acf
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ def openpty():
|
|||
except (AttributeError, OSError):
|
||||
pass
|
||||
master_fd, slave_name = _open_terminal()
|
||||
slave_fd = _slave_open(slave_name)
|
||||
slave_fd = slave_open(slave_name)
|
||||
return master_fd, slave_fd
|
||||
|
||||
def master_open():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue