mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Correct the fix for #10252: Popen objects have no close method.
This commit is contained in:
parent
e7cf954247
commit
8bdbe9c52f
2 changed files with 20 additions and 15 deletions
|
@ -377,7 +377,9 @@ def _find_exe_version(cmd):
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue