summaryrefslogtreecommitdiff
path: root/giscanner/shlibs.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/shlibs.py')
-rw-r--r--giscanner/shlibs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py
index 32fc5e44..7b7b2d02 100644
--- a/giscanner/shlibs.py
+++ b/giscanner/shlibs.py
@@ -106,7 +106,9 @@ def _resolve_non_libtool(options, binary, libraries):
args.extend(['otool', '-L', binary.args[0]])
else:
args.extend(['ldd', binary.args[0]])
- output = subprocess.check_output(args, universal_newlines=True, errors='replace')
+ output = subprocess.check_output(args)
+ if isinstance(output, bytes):
+ output = output.decode("utf-8", "replace")
# Use absolute paths on OS X to conform to how libraries are usually
# referenced on OS X systems, and file names everywhere else.