summaryrefslogtreecommitdiff
path: root/giscanner/transformer.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/transformer.py')
-rw-r--r--giscanner/transformer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index e8b1e049..a1ea3433 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -262,10 +262,11 @@ currently-scanned namespace is first."""
stderr=subprocess.PIPE,
shell=True)
_name = name
- name, err = proc.communicate(name)
+ proc_name, err = proc.communicate(name.encode())
if proc.returncode:
raise ValueError('filter: "%s" exited: %d with error: %s' %
(self._symbol_filter_cmd, proc.returncode, err))
+ name = proc_name.decode('ascii')
matches = [] # Namespaces which might contain this name
unprefixed_namespaces = [] # Namespaces with no prefix, last resort