[oe-commits] [openembedded-core] 24/31: graph-tool: convert to python3
git at git.openembedded.org
git at git.openembedded.org
Tue Jul 12 22:11:35 UTC 2016
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit 0d0864ae0ff9e53623ad1c7146b071f2a046f21f
Author: Maxin B. John <maxin.john at intel.com>
AuthorDate: Thu Jul 7 18:13:04 2016 +0300
graph-tool: convert to python3
move graph-tool to python3
Signed-off-by: Maxin B. John <maxin.john at intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
scripts/contrib/graph-tool | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/contrib/graph-tool b/scripts/contrib/graph-tool
index 6dc7d33..0275fbd 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)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list