Skip to content

Commit 277c1f1

Browse files
ahtiparkera
authored andcommitted
Fix configure script Python 3 compatibility (swiftlang#1639)
1 parent 21726f0 commit 277c1f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pkg_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _call(self, *pkg_config_args):
3131
try:
3232
cmd = [Configuration.current.pkg_config] + list(pkg_config_args) + [self.package_name]
3333
print("Executing command '{}'".format(cmd), file=sys.stderr)
34-
return shlex.split(subprocess.check_output(cmd))
34+
return shlex.split(subprocess.check_output(cmd).decode('utf-8'))
3535
except subprocess.CalledProcessError as e:
3636
raise self.Error("pkg-config exited with error code {}".format(e.returncode))
3737

0 commit comments

Comments
 (0)