summaryrefslogtreecommitdiff
path: root/Lib/pty.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-05-11 19:15:28 +0000
committerFred Drake <fdrake@acm.org>2001-05-11 19:15:28 +0000
commit652553192ef7377909bdf9cc479625f99e5b6e88 (patch)
treec1f8f98954aa542d0408d0764358af64422b3517 /Lib/pty.py
parent553f68114fadda312abdf1a62e298383dac81060 (diff)
downloadcpython-git-652553192ef7377909bdf9cc479625f99e5b6e88.tar.gz
Clean up bare except where only IOError makes sense.
Diffstat (limited to 'Lib/pty.py')
-rw-r--r--Lib/pty.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pty.py b/Lib/pty.py
index 0c203dd612..fb7edc0fea 100644
--- a/Lib/pty.py
+++ b/Lib/pty.py
@@ -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)