mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
tighten up except - os.close only raises OSError
see bug 411881
This commit is contained in:
parent
8e5fd53be0
commit
1c90d7ab3c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue