mirror of
https://github.com/python/cpython
synced 2024-09-22 17:34:48 +00:00
Close stdout, clear ResourceWarning
This commit is contained in:
parent
57160d7204
commit
7ef28e8bd7
|
@ -249,6 +249,7 @@ def _have_soundcard():
|
|||
p = subprocess.Popen([cscript_path, check_script],
|
||||
stdout=subprocess.PIPE)
|
||||
__have_soundcard_cache = not p.wait()
|
||||
p.stdout.close()
|
||||
return __have_soundcard_cache
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue