zcutil/fetch-params.py: Support Python 3.
This commit is contained in:
parent
95e9156cee
commit
8714681840
|
@ -49,7 +49,11 @@ have the correct sha256sum, no networking is used.
|
||||||
|
|
||||||
|
|
||||||
def which(name):
|
def which(name):
|
||||||
p = subprocess.Popen(['which', name], stdout=subprocess.PIPE)
|
p = subprocess.Popen(
|
||||||
|
['which', name],
|
||||||
|
stdout=subprocess.PIPE,
|
||||||
|
universal_newlines=True,
|
||||||
|
)
|
||||||
p.wait()
|
p.wait()
|
||||||
if not p.returncode == 0:
|
if not p.returncode == 0:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in New Issue