[OE-core] [PATCH 2/2] graph-tool: convert to python3

Maxin B. John maxin.john at intel.com
Thu Jul 7 15:13:04 UTC 2016


move graph-tool to python3

Signed-off-by: Maxin B. John <maxin.john at intel.com>
---
 scripts/contrib/graph-tool | 4 ++--
 1 file 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)
-- 
2.4.0




More information about the Openembedded-core mailing list