diff options
author | Akemi <der.richter@gmx.de> | 2018-02-12 16:20:32 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-02-12 08:29:22 -0800 |
commit | c82fed85b985d30806b1982c1f58f50a4edbc3fa (patch) | |
tree | da51d035021b20d2c7b6eeda52c1ea53e620626a /waftools | |
parent | 3f735208979949dd2738680ac31ee4040d390855 (diff) |
build: fix swift detection with python3
python3 returns bytes instead of str, unlike python2. explicitly decode
the output.
Diffstat (limited to 'waftools')
-rw-r--r-- | waftools/detections/compiler_swift.py | 2 |
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 "" |