[gnome-code-assistance] [backends/c] python 2 compability
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance] [backends/c] python 2 compability
- Date: Tue, 12 Nov 2013 12:40:42 +0000 (UTC)
commit 0555d46070f0fc83c8bb40d9573496c93720c979
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Tue Nov 12 13:38:19 2013 +0100
[backends/c] python 2 compability
backends/c/makefileintegration.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backends/c/makefileintegration.py b/backends/c/makefileintegration.py
index c3dbc72..893d3bb 100644
--- a/backends/c/makefileintegration.py
+++ b/backends/c/makefileintegration.py
@@ -260,7 +260,7 @@ class MakefileIntegration:
try:
with open(os.devnull, 'w') as stderr:
- outstr = str(subprocess.check_output(args, cwd=wd, stderr=stderr), 'utf-8')
+ outstr = subprocess.check_output(args, cwd=wd, stderr=stderr).decode('utf-8')
except:
return []
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]