[gnome-continuous-yocto/gnomeostree-3.28-rocko: 1279/8267] graph-tool: convert to python3
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 1279/8267] graph-tool: convert to python3
- Date: Sat, 16 Dec 2017 21:36:18 +0000 (UTC)
commit 2c9291dfb945203bd1ab3ab75c8b5de24cb32588
Author: Maxin B. John <maxin john intel com>
Date: Thu Jul 7 18:13:04 2016 +0300
graph-tool: convert to python3
move graph-tool to python3
(From OE-Core rev: 0d0864ae0ff9e53623ad1c7146b071f2a046f21f)
Signed-off-by: Maxin B. John <maxin john intel com>
Signed-off-by: Ross Burton <ross burton intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
scripts/contrib/graph-tool | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/scripts/contrib/graph-tool b/scripts/contrib/graph-tool
index 6dc7d33..0275fbd 100755
--- a/scripts/contrib/graph-tool
+++ b/scripts/contrib/graph-tool
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Simple graph query utility
# useful for getting answers from .dot files produced by bitbake -g
@@ -56,7 +56,7 @@ def find_paths(args, usage):
paths = list(get_path_networkx(args[0], fromnode, tonode))
if paths:
for path in paths:
- print ' -> '.join(path)
+ print(" -> ".join(map(str,path)))
else:
print("ERROR: no path from %s to %s in graph" % (fromnode, tonode))
sys.exit(1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]