Correct the fix for #10252: Popen objects have no close method.

This commit is contained in:
Éric Araujo 2010-11-06 15:57:52 +00:00
parent e7cf954247
commit 8bdbe9c52f
2 changed files with 20 additions and 15 deletions

View file

@ -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