Selaa lähdekoodia

support/scripts/pkg-stats: fix flake8 warnings

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@bootlin.com>
Thomas Petazzoni 4 vuotta sitten
vanhempi
commit
52a53c97e5
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      support/scripts/pkg-stats

+ 2 - 2
support/scripts/pkg-stats

@@ -144,8 +144,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)