summaryrefslogtreecommitdiffstats
path: root/scripts/contrib/graph-tool
diff options
context:
space:
mode:
authorMaxin B. John <maxin.john@intel.com>2016-07-07 18:13:04 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-12 23:10:15 +0100
commit2c9291dfb945203bd1ab3ab75c8b5de24cb32588 (patch)
tree5d7fc8e04001fbddbaa8aa6266dad53c729b1c35 /scripts/contrib/graph-tool
parentbaed9bd848ab909c3459d943bbe6af32f684c922 (diff)
downloadpoky-2c9291dfb945203bd1ab3ab75c8b5de24cb32588.tar.gz
poky-2c9291dfb945203bd1ab3ab75c8b5de24cb32588.tar.bz2
poky-2c9291dfb945203bd1ab3ab75c8b5de24cb32588.zip
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>
Diffstat (limited to 'scripts/contrib/graph-tool')
-rwxr-xr-xscripts/contrib/graph-tool4
1 files changed, 2 insertions, 2 deletions
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)