summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2018-02-12 16:20:32 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-02-12 08:29:22 -0800
commitc82fed85b985d30806b1982c1f58f50a4edbc3fa (patch)
treeda51d035021b20d2c7b6eeda52c1ea53e620626a
parent3f735208979949dd2738680ac31ee4040d390855 (diff)
downloadmpv-c82fed85b985d30806b1982c1f58f50a4edbc3fa.tar.bz2
mpv-c82fed85b985d30806b1982c1f58f50a4edbc3fa.tar.xz
build: fix swift detection with python3
python3 returns bytes instead of str, unlike python2. explicitly decode the output.
-rw-r--r--waftools/detections/compiler_swift.py2
1 files changed, 1 insertions, 1 deletions
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 ""