summaryrefslogtreecommitdiffstats
path: root/Lib/popen2.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2002-03-24 20:48:26 (GMT)
committerSkip Montanaro <skip@pobox.com>2002-03-24 20:48:26 (GMT)
commit1c90d7ab3c9a13e8578d6148cd33b5ace23f3aec (patch)
tree90308adda48a549f670aec701feccacea890403d /Lib/popen2.py
parent8e5fd53be00001cbfa9368bd64f67cdef5d46771 (diff)
downloadcpython-1c90d7ab3c9a13e8578d6148cd33b5ace23f3aec.zip
cpython-1c90d7ab3c9a13e8578d6148cd33b5ace23f3aec.tar.gz
cpython-1c90d7ab3c9a13e8578d6148cd33b5ace23f3aec.tar.bz2
tighten up except - os.close only raises OSError
see bug 411881
Diffstat (limited to 'Lib/popen2.py')
-rw-r--r--Lib/popen2.py2
1 files changed, 1 insertions, 1 deletions
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)