From c82fed85b985d30806b1982c1f58f50a4edbc3fa Mon Sep 17 00:00:00 2001 From: Akemi Date: Mon, 12 Feb 2018 16:20:32 +0100 Subject: build: fix swift detection with python3 python3 returns bytes instead of str, unlike python2. explicitly decode the output. --- waftools/detections/compiler_swift.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'waftools') diff --git a/waftools/detections/compiler_swift.py b/waftools/detections/compiler_swift.py index fba5964e8a..c3b105486a 100644 --- a/waftools/detections/compiler_swift.py +++ b/waftools/detections/compiler_swift.py @@ -6,7 +6,7 @@ def __run(cmd): stdout=Utils.subprocess.PIPE, stderr=Utils.subprocess.PIPE, shell=True) - output = cmd.stdout.read().strip() + output = cmd.stdout.read().decode().strip() return output except Exception: return "" -- cgit v1.2.3