[Buildroot] [PATCH 05/10] support/scripts/pkg-stats: fix flake8 warnings

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Jan 7 13:39:42 UTC 2021


Fixes:

support/scripts/pkg-stats:148:17: E741 ambiguous variable name 'l'
support/scripts/pkg-stats:379:9: E741 ambiguous variable name 'l'

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 support/scripts/pkg-stats | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index cf206e6533..854ece389d 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -145,8 +145,8 @@ class Package:
         self.infras = list()
         with open(os.path.join(brpath, self.path), 'r') as f:
             lines = f.readlines()
-            for l in lines:
-                match = INFRA_RE.match(l)
+            for line in lines:
+                match = INFRA_RE.match(line)
                 if not match:
                     continue
                 infra = match.group(1)
-- 
2.29.2



More information about the buildroot mailing list