]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix bug #379, reported by Phillip Porch <root@theproch.com>:
authorFred Drake <fdrake@acm.org>
Mon, 3 Jul 2000 13:44:25 +0000 (13:44 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 3 Jul 2000 13:44:25 +0000 (13:44 +0000)
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.

Lib/pty.py

index b06938ada0a59e9ad05d6fed9d8ba61c1ba2beee..12c9093a24ffa1ddd6fb8c5e0c1f7e02a8706426 100644 (file)
@@ -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():