Use p.wait() instead of p.communicate()

The latter calls the former anyway, and we don't need to fetch the output nor
send any stdin.
This commit is contained in:
Daniel Martí 2014-07-09 19:22:39 +02:00
parent a834ff4ab2
commit 3d923a6718

View file

@ -1681,7 +1681,7 @@ def FDroidPopen(commands, cwd=None, shell=False, output=True):
time.sleep(0.1) time.sleep(0.1)
p.communicate() p.wait()
result.returncode = p.returncode result.returncode = p.returncode
return result return result