From patchwork Thu Jan 7 13:39:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 1423286 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bootlin.com Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DBS625Qsmz9sSC for ; Fri, 8 Jan 2021 00:40:10 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6863386EC0; Thu, 7 Jan 2021 13:40:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Kbl2hMQGn70T; Thu, 7 Jan 2021 13:40:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 7EF818732D; Thu, 7 Jan 2021 13:40:04 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 0938E1BF34A for ; Thu, 7 Jan 2021 13:40:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 028B28733A for ; Thu, 7 Jan 2021 13:40:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iM9DKcMXmu0C for ; Thu, 7 Jan 2021 13:40:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay13.mail.gandi.net (relay13.mail.gandi.net [217.70.178.233]) by hemlock.osuosl.org (Postfix) with ESMTPS id 2B3A486EC0 for ; Thu, 7 Jan 2021 13:40:00 +0000 (UTC) Received: from localhost (aputeaux-654-1-223-147.w90-2.abo.wanadoo.fr [90.2.82.147]) (Authenticated sender: thomas.petazzoni@bootlin.com) by relay13.mail.gandi.net (Postfix) with ESMTPSA id 2CA7C8000B; Thu, 7 Jan 2021 13:39:56 +0000 (UTC) From: Thomas Petazzoni To: Buildroot List Date: Thu, 7 Jan 2021 14:39:42 +0100 Message-Id: <20210107133948.2997849-6-thomas.petazzoni@bootlin.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210107133948.2997849-1-thomas.petazzoni@bootlin.com> References: <20210107133948.2997849-1-thomas.petazzoni@bootlin.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 05/10] support/scripts/pkg-stats: fix flake8 warnings X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Matt Weber , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 --- 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)