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>
This commit is contained in:
Maxin B. John 2016-07-07 18:13:04 +03:00 committed by Richard Purdie
parent baed9bd848
commit 2c9291dfb9

View File

@ -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)