]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clean up bare except where only IOError makes sense.
authorFred Drake <fdrake@acm.org>
Fri, 11 May 2001 19:15:28 +0000 (19:15 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 11 May 2001 19:15:28 +0000 (19:15 +0000)
Lib/pty.py

index 0c203dd612da62d88bcf8ff7eb6fce001cc8cbb8..fb7edc0fea7398e0eb29153b5c57f13a6cc9932c 100644 (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)