mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Close stdout, clear ResourceWarning
This commit is contained in:
parent
57160d7204
commit
7ef28e8bd7
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue