diff options
-rwxr-xr-x | scripts/contrib/graph-tool | 4 |
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 @@ | |||
1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python3 |
2 | 2 | ||
3 | # Simple graph query utility | 3 | # Simple graph query utility |
4 | # useful for getting answers from .dot files produced by bitbake -g | 4 | # useful for getting answers from .dot files produced by bitbake -g |
@@ -56,7 +56,7 @@ def find_paths(args, usage): | |||
56 | paths = list(get_path_networkx(args[0], fromnode, tonode)) | 56 | paths = list(get_path_networkx(args[0], fromnode, tonode)) |
57 | if paths: | 57 | if paths: |
58 | for path in paths: | 58 | for path in paths: |
59 | print ' -> '.join(path) | 59 | print(" -> ".join(map(str,path))) |
60 | else: | 60 | else: |
61 | print("ERROR: no path from %s to %s in graph" % (fromnode, tonode)) | 61 | print("ERROR: no path from %s to %s in graph" % (fromnode, tonode)) |
62 | sys.exit(1) | 62 | sys.exit(1) |