From ea5c89e956ac835247eab9b206ce7958f0a70c4b Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 14 Dec 2017 21:35:25 -0800 Subject: [PATCH] [waf] Use {str,bytes}.decode to make it compatible with Python 2/3 --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wscript b/wscript index e3666c5e..48f6dff1 100644 --- a/wscript +++ b/wscript @@ -201,7 +201,7 @@ def build(bld): if bld.env['use_system_clang']: rpath = [] - output = subprocess.check_output(['clang', '-###', '-xc', '/dev/null'], stderr=subprocess.STDOUT) + output = subprocess.check_output(['clang', '-###', '-xc', '/dev/null'], stderr=subprocess.STDOUT).decode() match = re.search(r'"-resource-dir" "([^"]*)"', output, re.M | re.I) if match: default_resource_directory = match.group(1)