mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Clean up bare except where only IOError makes sense.
This commit is contained in:
parent
553f68114f
commit
652553192e
1 changed files with 1 additions and 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue