summaryrefslogtreecommitdiffstats
path: root/Lib/pty.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-05-11 19:15:28 (GMT)
committerFred Drake <fdrake@acm.org>2001-05-11 19:15:28 (GMT)
commit652553192ef7377909bdf9cc479625f99e5b6e88 (patch)
treec1f8f98954aa542d0408d0764358af64422b3517 /Lib/pty.py
parent553f68114fadda312abdf1a62e298383dac81060 (diff)
downloadcpython-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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pty.py b/Lib/pty.py
index 0c203dd..fb7edc0 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)