From 0d0864ae0ff9e53623ad1c7146b071f2a046f21f Mon Sep 17 00:00:00 2001 From: "Maxin B. John" Date: Thu, 7 Jul 2016 18:13:04 +0300 Subject: graph-tool: convert to python3 move graph-tool to python3 Signed-off-by: Maxin B. John Signed-off-by: Ross Burton --- scripts/contrib/graph-tool | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/contrib/graph-tool b/scripts/contrib/graph-tool index 6dc7d337f8..0275fbd5c0 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) -- cgit 1.2.3-korg