zcutil/fetch-params.py: Support Python 3.

This commit is contained in:
Mansour Moufid 2016-01-22 00:39:25 -05:00
parent 95e9156cee
commit 8714681840
1 changed files with 5 additions and 1 deletions

View File

@ -49,7 +49,11 @@ have the correct sha256sum, no networking is used.
def which(name):
p = subprocess.Popen(['which', name], stdout=subprocess.PIPE)
p = subprocess.Popen(
['which', name],
stdout=subprocess.PIPE,
universal_newlines=True,
)
p.wait()
if not p.returncode == 0:
return None