diff options
| author | Maxin B. John <maxin.john@intel.com> | 2016-07-07 18:13:04 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-12 23:10:15 +0100 |
| commit | 2c9291dfb945203bd1ab3ab75c8b5de24cb32588 (patch) | |
| tree | 5d7fc8e04001fbddbaa8aa6266dad53c729b1c35 /scripts/contrib/graph-tool | |
| parent | baed9bd848ab909c3459d943bbe6af32f684c922 (diff) | |
| download | poky-2c9291dfb945203bd1ab3ab75c8b5de24cb32588.tar.gz | |
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-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) |
