From ce36ad8a467d914eb5c91f33835b9eaea18ee93b Mon Sep 17 00:00:00 2001 From: Collin Winter Date: Thu, 30 Aug 2007 01:19:48 +0000 Subject: Raise statement normalization in Lib/. --- Lib/pty.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/pty.py') diff --git a/Lib/pty.py b/Lib/pty.py index 5d588e49a3..487382725e 100644 --- a/Lib/pty.py +++ b/Lib/pty.py @@ -57,7 +57,7 @@ def _open_terminal(): try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0o666, 0) except IOError as msg: - raise os.error, msg + raise os.error(msg) return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': @@ -67,7 +67,7 @@ def _open_terminal(): except os.error: continue return (fd, '/dev/tty' + x + y) - raise os.error, 'out of pty devices' + raise os.error('out of pty devices') def slave_open(tty_name): """slave_open(tty_name) -> slave_fd -- cgit v1.2.1