mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix #10252 again (hopefully definitely). Patch by Brian Curtin.
This commit is contained in:
parent
71f8c65b66
commit
7c03d8c5c6
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue