diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 23:35:18 +0200 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 23:35:18 +0200 |
commit | 3438fa496db50ef3cafcfdb3243f2f769bc12ebe (patch) | |
tree | 8c480821ca46d7d91d4f3ba8c8343afe389d7208 /Lib/subprocess.py | |
parent | 6eda46de99189812e6982f568bbe941346918964 (diff) | |
download | cpython-git-3438fa496db50ef3cafcfdb3243f2f769bc12ebe.tar.gz |
Get rig of EnvironmentError (#16705)
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r-- | Lib/subprocess.py | 4 |
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 |