From 1c90d7ab3c9a13e8578d6148cd33b5ace23f3aec Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Sun, 24 Mar 2002 20:48:26 +0000 Subject: tighten up except - os.close only raises OSError see bug 411881 --- Lib/popen2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/popen2.py b/Lib/popen2.py index 07ed6d6..f00cb83 100644 --- a/Lib/popen2.py +++ b/Lib/popen2.py @@ -62,7 +62,7 @@ class Popen3: for i in range(3, MAXFD): try: os.close(i) - except: + except OSError: pass try: os.execvp(cmd[0], cmd) -- cgit v0.12