mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
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:
parent
baed9bd848
commit
2c9291dfb9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user