From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [git commit] support/scripts/pkg-stats: use parenthesis for print
Date: Sat, 19 May 2018 13:48:21 +0200 [thread overview]
Message-ID: <20180602101010.DC2FF7FADE@busybox.osuosl.org> (raw)
commit: https://git.buildroot.net/buildroot/commit/?id=eb04235783abe58a6a7f8ecc8f9ab46a6d03b543
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Use Python 3 style print calls, in order to make pkg-stats Python 3
compliant.
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
Reviewed-by: Ricardo Martincoski <ricardo.martincoski@datacom.ind.br>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
support/scripts/pkg-stats | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index 43f7e8d543..b7b00e8634 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -499,17 +499,17 @@ def parse_args():
def __main__():
args = parse_args()
if args.npackages and args.packages:
- print "ERROR: -n and -p are mutually exclusive"
+ print("ERROR: -n and -p are mutually exclusive")
sys.exit(1)
if args.packages:
package_list = args.packages.split(",")
else:
package_list = None
- print "Build package list ..."
+ print("Build package list ...")
packages = get_pkglist(args.npackages, package_list)
- print "Getting package make info ..."
+ print("Getting package make info ...")
package_init_make_info()
- print "Getting package details ..."
+ print("Getting package details ...")
for pkg in packages:
pkg.set_infra()
pkg.set_license()
@@ -517,9 +517,9 @@ def __main__():
pkg.set_patch_count()
pkg.set_check_package_warnings()
pkg.set_current_version()
- print "Calculate stats"
+ print("Calculate stats")
stats = calculate_stats(packages)
- print "Write HTML"
+ print("Write HTML")
dump_html(packages, stats, args.output)
next reply other threads:[~2018-05-19 11:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-19 11:48 Thomas Petazzoni [this message]
2018-07-17 7:30 ` [Buildroot] [git commit] support/scripts/pkg-stats: use parenthesis for print Peter Korsgaard
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=20180602101010.DC2FF7FADE@busybox.osuosl.org \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/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.