summaryrefslogtreecommitdiff
path: root/giscanner/shlibs.py
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-04-28 23:24:36 -0700
committerColin Walters <walters@verbum.org>2015-09-29 23:16:32 -0400
commitecbf1460ffe0f1f6fa42fe79b27c22969d194cf5 (patch)
tree8f19ddfa2d10fb1e8eeea679f1541a25f0f0e7d3 /giscanner/shlibs.py
parent0211bda3da384818c0f99b5a468022c7529fed7e (diff)
downloadgobject-introspection-ecbf1460ffe0f1f6fa42fe79b27c22969d194cf5.tar.gz
giscanner: Decode command output for Python 3 compatibility
Decode the output of various subprocess calls assuming ascii encoding. https://bugzilla.gnome.org/show_bug.cgi?id=679438
Diffstat (limited to 'giscanner/shlibs.py')
-rw-r--r--giscanner/shlibs.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py
index c1f89bed..c93d20cf 100644
--- a/giscanner/shlibs.py
+++ b/giscanner/shlibs.py
@@ -116,6 +116,7 @@ def _resolve_non_libtool(options, binary, libraries):
shlibs = []
for line in proc.stdout:
+ line = line.decode('ascii')
for library, pattern in patterns.items():
m = pattern.search(line)
if m: