diff options
author | Fred Drake <fdrake@acm.org> | 2001-05-11 19:15:28 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-05-11 19:15:28 (GMT) |
commit | 652553192ef7377909bdf9cc479625f99e5b6e88 (patch) | |
tree | c1f8f98954aa542d0408d0764358af64422b3517 /Lib/pty.py | |
parent | 553f68114fadda312abdf1a62e298383dac81060 (diff) | |
download | cpython-652553192ef7377909bdf9cc479625f99e5b6e88.zip cpython-652553192ef7377909bdf9cc479625f99e5b6e88.tar.gz cpython-652553192ef7377909bdf9cc479625f99e5b6e88.tar.bz2 |
Clean up bare except where only IOError makes sense.
Diffstat (limited to 'Lib/pty.py')
-rw-r--r-- | Lib/pty.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -147,5 +147,5 @@ def spawn(argv, master_read=_read, stdin_read=_read): tty.setraw(STDIN_FILENO) try: _copy(master_fd, master_read, stdin_read) - except: + except IOError: tty.tcsetattr(STDIN_FILENO, tty.TCSAFLUSH, mode) |