diff options
author | Marc-Antoine Perennou <Marc-Antoine@Perennou.com> | 2016-01-15 17:30:29 +0100 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2016-01-18 13:30:54 -0500 |
commit | c598d73125c7fd6577ea911c103bf63fb23f0813 (patch) | |
tree | ebab4a1046a9799e54157db071ab2fe1dc266c36 /giscanner/transformer.py | |
parent | 97387ca2675199c22441e01a7292b3bf7e9d9301 (diff) | |
download | gobject-introspection-c598d73125c7fd6577ea911c103bf63fb23f0813.tar.gz |
giscanner: fix tests with python3.5
https://bugzilla.gnome.org/show_bug.cgi?id=760682
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Diffstat (limited to 'giscanner/transformer.py')
-rw-r--r-- | giscanner/transformer.py | 3 |
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 |