[gnome-code-assistance] [backends/c] Fix makefile integration for python3



commit f20fb8c542e318fc59584f20bd76008ae862e1b1
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Sat Nov 9 15:49:32 2013 +0100

    [backends/c] Fix makefile integration for python3

 backends/c/makefileintegration.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/backends/c/makefileintegration.py b/backends/c/makefileintegration.py
index 81f8533..4e94263 100644
--- a/backends/c/makefileintegration.py
+++ b/backends/c/makefileintegration.py
@@ -158,7 +158,7 @@ class MakefileIntegration:
 
         try:
             with open(os.devnull, 'w') as stderr:
-                outstr = subprocess.check_output(args, cwd=wd, stderr=stderr)
+                outstr = str(subprocess.check_output(args, cwd=wd, stderr=stderr), 'utf-8')
         except:
             return []
 
@@ -192,7 +192,7 @@ class MakefileIntegration:
 
                     break
 
-        ret = targets.keys()
+        ret = list(targets.keys())
         ret.sort(key=lambda x: targets[x])
 
         return ret
@@ -222,7 +222,7 @@ class MakefileIntegration:
 
         try:
             with open(os.devnull, 'w') as stderr:
-                outstr = subprocess.check_output(args, cwd=wd, stderr=stderr)
+                outstr = str(subprocess.check_output(args, cwd=wd, stderr=stderr), 'utf-8')
         except:
             return []
 


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