Skip to content

Commit

Permalink
build: fix swift detection with python3
Browse files Browse the repository at this point in the history
python3 returns bytes instead of str, unlike python2. explicitly decode
the output.
  • Loading branch information
Akemi committed Feb 12, 2018
1 parent 15905ef commit be3a7da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waftools/detections/compiler_swift.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit be3a7da

Please sign in to comment.