]> code.ossystems Code Review - openembedded-core.git/commitdiff
graph-tool: convert to python3
authorMaxin B. John <maxin.john@intel.com>
Thu, 7 Jul 2016 15:13:04 +0000 (18:13 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Jul 2016 22:10:04 +0000 (23:10 +0100)
move graph-tool to python3

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/contrib/graph-tool

index 6dc7d337f86322d08db8da7a278759957bc6dc80..0275fbd5c08df9956ecc949ee5bbdbe08718c534 100755 (executable)
@@ -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)