mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Raise statement normalization in Lib/.
This commit is contained in:
parent
8b3febef2f
commit
ce36ad8a46
80 changed files with 502 additions and 530 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue