Clean up bare except where only IOError makes sense.

This commit is contained in:
Fred Drake 2001-05-11 19:15:28 +00:00
parent 553f68114f
commit 652553192e
1 changed files with 1 additions and 1 deletions

View File

@ -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)