[Buildroot] [PATCH 12/14] size-stats-compare: fix code style

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Feb 13 07:51:34 UTC 2018


Hello,

On Tue, 13 Feb 2018 01:28:31 -0200, Ricardo Martincoski wrote:

> ... This is present in other scripts and I missed that in v1. I plan to use it
> if you don't oppose to.
> 
>     if header[0] != 'File name' or header[1] != 'Package name' or \
>        header[2] != 'File size' or header[3] != 'Package size':
>         print(("Input file %s does not contain the expected header. Are you "

This version looks good to me. The parenthesis around the if condition
are useless in Python.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com


More information about the buildroot mailing list