summaryrefslogtreecommitdiff
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 23:35:18 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 23:35:18 +0200
commit3438fa496db50ef3cafcfdb3243f2f769bc12ebe (patch)
tree8c480821ca46d7d91d4f3ba8c8343afe389d7208 /Lib/subprocess.py
parent6eda46de99189812e6982f568bbe941346918964 (diff)
downloadcpython-git-3438fa496db50ef3cafcfdb3243f2f769bc12ebe.tar.gz
Get rig of EnvironmentError (#16705)
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index ac960f9ad5..50d7cfdcdf 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -819,7 +819,7 @@ class Popen(object):
for f in filter(None, (self.stdin, self.stdout, self.stderr)):
try:
f.close()
- except EnvironmentError:
+ except OSError:
pass # Ignore EBADF or other errors.
# Make sure the child pipes are closed as well.
@@ -833,7 +833,7 @@ class Popen(object):
for fd in to_close:
try:
os.close(fd)
- except EnvironmentError:
+ except OSError:
pass
raise