From 87146818404da08f0480a65e64ac1b91118e5638 Mon Sep 17 00:00:00 2001 From: Mansour Moufid Date: Fri, 22 Jan 2016 00:39:25 -0500 Subject: [PATCH] zcutil/fetch-params.py: Support Python 3. --- zcutil/fetch-params.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zcutil/fetch-params.py b/zcutil/fetch-params.py index a31e47dc..b73ad5ce 100644 --- a/zcutil/fetch-params.py +++ b/zcutil/fetch-params.py @@ -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