* [Buildroot] [git commit] support/scripts/pkg-stats: use parenthesis for print
@ 2018-05-19 11:48 Thomas Petazzoni
2018-07-17 7:30 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Petazzoni @ 2018-05-19 11:48 UTC (permalink / raw)
To: buildroot
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)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [git commit] support/scripts/pkg-stats: use parenthesis for print
2018-05-19 11:48 [Buildroot] [git commit] support/scripts/pkg-stats: use parenthesis for print Thomas Petazzoni
@ 2018-07-17 7:30 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2018-07-17 7:30 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:
> 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>
Committed to 2018.05.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-17 7:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-19 11:48 [Buildroot] [git commit] support/scripts/pkg-stats: use parenthesis for print Thomas Petazzoni
2018-07-17 7:30 ` Peter Korsgaard
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.