summaryrefslogtreecommitdiff
path: root/Lib/distutils/cygwinccompiler.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2010-11-06 15:57:52 +0000
committerÉric Araujo <merwok@netwok.org>2010-11-06 15:57:52 +0000
commit8bdbe9c52f95eb161a14e9571562892abd450ae0 (patch)
tree687373c931ba5c22894ce80d503dcf1b33e991ad /Lib/distutils/cygwinccompiler.py
parente7cf95424718443079159fedd5c1b487ac6a98b5 (diff)
downloadcpython-git-8bdbe9c52f95eb161a14e9571562892abd450ae0.tar.gz
Correct the fix for #10252: Popen objects have no close method.
Diffstat (limited to 'Lib/distutils/cygwinccompiler.py')
-rw-r--r--Lib/distutils/cygwinccompiler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/distutils/cygwinccompiler.py b/Lib/distutils/cygwinccompiler.py
index 95fa3ed3c8..5676e91a79 100644
--- a/Lib/distutils/cygwinccompiler.py
+++ b/Lib/distutils/cygwinccompiler.py
@@ -377,7 +377,9 @@ def _find_exe_version(cmd):
try:
out_string = out.read()
finally:
- out.close()
+ out.stdin.close()
+ out.stdout.close()
+ out.stderr.close()
result = RE_VERSION.search(out_string)
if result is None:
return None