[gobject-introspection] giscanner: fix tests with python3.5



commit c598d73125c7fd6577ea911c103bf63fb23f0813
Author: Marc-Antoine Perennou <Marc-Antoine Perennou com>
Date:   Fri Jan 15 17:30:29 2016 +0100

    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>

 giscanner/transformer.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index e8b1e04..a1ea343 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]