From: Éric Araujo Date: Sat, 6 Nov 2010 18:03:52 +0000 (+0000) Subject: Fix #10252 again (hopefully definitely). Patch by Brian Curtin. X-Git-Tag: v3.2a4~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c03d8c5c6928af3ed404016b31b1bcdbafd26cd;p=thirdparty%2FPython%2Fcpython.git Fix #10252 again (hopefully definitely). Patch by Brian Curtin. --- diff --git a/Lib/distutils/cygwinccompiler.py b/Lib/distutils/cygwinccompiler.py index 5676e91a79a3..95fa3ed3c8cb 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