Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7c03d8c

Browse files
committed
Fix #10252 again (hopefully definitely). Patch by Brian Curtin.
1 parent 71f8c65 commit 7c03d8c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Lib/distutils/cygwinccompiler.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,7 @@ def _find_exe_version(cmd):
377377
try:
378378
out_string = out.read()
379379
finally:
380-
out.stdin.close()
381-
out.stdout.close()
382-
out.stderr.close()
380+
out.close()
383381
result = RE_VERSION.search(out_string)
384382
if result is None:
385383
return None

0 commit comments

Comments
 (0)