From: Fred Drake Date: Mon, 3 Jul 2000 13:44:25 +0000 (+0000) Subject: Fix bug #379, reported by Phillip Porch : X-Git-Tag: v2.0b1~1109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ea1fc8acf33bdbfe578d8ccaba6e030da6bde40;p=thirdparty%2FPython%2Fcpython.git Fix bug #379, reported by Phillip Porch : 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. --- diff --git a/Lib/pty.py b/Lib/pty.py index b06938ada0a5..12c9093a24ff 100644 --- a/Lib/pty.py +++ b/Lib/pty.py @@ -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():