summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2010-11-06 18:03:52 (GMT)
committerÉric Araujo <merwok@netwok.org>2010-11-06 18:03:52 (GMT)
commit7c03d8c5c6928af3ed404016b31b1bcdbafd26cd (patch)
tree10155753ec8be23fde68f66bb0c550b077a39950 /Lib/distutils
parent71f8c65b66f6685275d85b733b4c04046956c03e (diff)
downloadcpython-7c03d8c5c6928af3ed404016b31b1bcdbafd26cd.zip
cpython-7c03d8c5c6928af3ed404016b31b1bcdbafd26cd.tar.gz
cpython-7c03d8c5c6928af3ed404016b31b1bcdbafd26cd.tar.bz2
Fix #10252 again (hopefully definitely). Patch by Brian Curtin.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/cygwinccompiler.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/distutils/cygwinccompiler.py b/Lib/distutils/cygwinccompiler.py
index 5676e91..95fa3ed 100644
--- a/Lib/distutils/cygwinccompiler.py
+++ b/Lib/distutils/cygwinccompiler.py
@@ -377,9 +377,7 @@ def _find_exe_version(cmd):
try:
out_string = out.read()
finally:
- out.stdin.close()
- out.stdout.close()
- out.stderr.close()
+ out.close()
result = RE_VERSION.search(out_string)
if result is None:
return None