From: "Maxin B. John" <maxin.john@intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 2/2] graph-tool: convert to python3
Date: Thu, 7 Jul 2016 18:13:04 +0300 [thread overview]
Message-ID: <1467904384-841-2-git-send-email-maxin.john@intel.com> (raw)
In-Reply-To: <1467904384-841-1-git-send-email-maxin.john@intel.com>
move graph-tool to python3
Signed-off-by: Maxin B. John <maxin.john@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)
--
2.4.0
prev parent reply other threads:[~2016-07-07 15:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-07 15:13 [PATCH 1/2] neard: upgrade to 0.16 Maxin B. John
2016-07-07 15:13 ` Maxin B. John [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1467904384-841-2-git-send-email-maxin.john@intel.com \
--to=maxin.john@intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.