commit | 8bdbe9c52f95eb161a14e9571562892abd450ae0 | [log] [tgz] |
---|---|---|
author | Éric Araujo <merwok@netwok.org> | Sat Nov 06 15:57:52 2010 +0000 |
committer | Éric Araujo <merwok@netwok.org> | Sat Nov 06 15:57:52 2010 +0000 |
tree | 687373c931ba5c22894ce80d503dcf1b33e991ad | |
parent | e7cf95424718443079159fedd5c1b487ac6a98b5 [diff] [blame] |
Correct the fix for #10252: Popen objects have no close method.
diff --git a/Lib/distutils/cygwinccompiler.py b/Lib/distutils/cygwinccompiler.py index 95fa3ed..5676e91 100644 --- a/Lib/distutils/cygwinccompiler.py +++ b/Lib/distutils/cygwinccompiler.py
@@ -377,7 +377,9 @@ 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