From patchwork Tue Jan 6 22:03:25 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1310 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767737092; bh=Qc0IDINb2K1dXhiTguwP0ca1qRyCRDBBmRl/8DBR8VM=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=pCnUd4ZUKuTlUhLLod+iPs8GkwGv0OJ28CMSdYYaQ7nyf4zzJI1IdgDNRhV4lOmXL pNn+5ESNeBPMgyUKgVDM979JGzWt9QzpirVKwpijziGAaBR0jDftzuCbBFjEWnU58n GRgcF6fkeBK93T0mRS5Qg/sO+R6Hz/qPACgJ5Z9PAo4MtIdn6wnKkEC9apc2AWFa+1 xLQVDfIJ/wAWAfrfgJwvc1aoK+eauFCM2PEFw40eJqIclTc/MurNpcGT9ADEOcAi9E /RTG8QcnptTg+b6iXOXdWrhjP86ceGMTqdMIKxKKWlDa0GxtVkTkTe9kqlSiGtx+ZB MZDprYU+VfWmw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E482169158 for ; Tue, 6 Jan 2026 15:04:52 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id G4_IaJW1FSED for ; Tue, 6 Jan 2026 15:04:52 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767737092; bh=Qc0IDINb2K1dXhiTguwP0ca1qRyCRDBBmRl/8DBR8VM=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=pCnUd4ZUKuTlUhLLod+iPs8GkwGv0OJ28CMSdYYaQ7nyf4zzJI1IdgDNRhV4lOmXL pNn+5ESNeBPMgyUKgVDM979JGzWt9QzpirVKwpijziGAaBR0jDftzuCbBFjEWnU58n GRgcF6fkeBK93T0mRS5Qg/sO+R6Hz/qPACgJ5Z9PAo4MtIdn6wnKkEC9apc2AWFa+1 xLQVDfIJ/wAWAfrfgJwvc1aoK+eauFCM2PEFw40eJqIclTc/MurNpcGT9ADEOcAi9E /RTG8QcnptTg+b6iXOXdWrhjP86ceGMTqdMIKxKKWlDa0GxtVkTkTe9kqlSiGtx+ZB MZDprYU+VfWmw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D4B4A69146 for ; Tue, 6 Jan 2026 15:04:52 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767737091; bh=y53idpP4PUXY7UeIaWzV46rxarcaJ5sTeQ1Uxzeo44U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KGHERnkxNLxqhiwpXvT/14Oxy2eUvbORxcw8V/xj/xzqALsVI68fI+HIrEFT0loCD sv+39RF6GSDpTxF+/KG0Ks9M96A07z+Mn0Jzyq5SwU4ahyG3bSEFfsN7Zl/FuYp/o6 v8x0uI/w2Xdl9YPE9CLKqXamjImZGnMkcxc/zZn62SK7/viEOJjWijDQweWf7eyyRS Mt9sJMESge+8dbg2H00VMFa8rxO7fyyXOggHO6TwQuxzhQNeyAAsKyki0sg3cmeJxg 9mrrN9u9TJuHRWY2Ju8eNfhQ9LkjlnPIx6VeAa8s+cqXelTTWAkv039qy0LcyBszzT e7Fojrg6wUTxA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3D2D25FF82; Tue, 6 Jan 2026 15:04:51 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id 5E_wADCKYZAm; Tue, 6 Jan 2026 15:04:51 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767737087; bh=wDUaw/fjt9wTiCXP0W0maY7agbYTks/fXXZeHmsWVyM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H+LYCHT/HvRVXSfR/4K+w6C3yub5S8Sax4fGYoacfPErFQ3PMKCKYXZo0ql7QJGYd qWgRkVSU8N+giXFh8ko+NVMg9e+2a3PZi9LWzPT4Xl7BUwwBAdcY8HYc1hxqlQS5rN bAw4V+3QPuPhVIX/bNxiNPRxXuGif/sh0/OLzZUhIEJBesewZwktkhwsJ/k+avykS6 /rB/NFcylgoePCcvC/q9Ls4r8Zez3lXNJPXvYCrAQrQte0UqV/AOdZIDdOG7JOKNY5 6WASzoeks/ogIMds2nMsEo93sLENJvMx0U4zLZC6HuYihuSgGXJPCB5mptYll6HW4y 7AfW+KB/WKzLg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id C1E2E690CB; Tue, 6 Jan 2026 15:04:46 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Tue, 6 Jan 2026 15:03:25 -0700 Message-ID: <20260106220403.2915630-8-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260106220403.2915630-1-sjg@u-boot.org> References: <20260106220403.2915630-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: XQQLMS6JETT4QHWDL7ML23AATNL6GRLK X-Message-ID-Hash: XQQLMS6JETT4QHWDL7ML23AATNL6GRLK X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass , Claude X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 07/29] buildman: Fix minor pylint warnings in builder.py List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass - Use .items() when iterating over dict in Config.__hash__() - Use clear() instead of iterating over a list in __del__() Co-developed-by: Claude Signed-off-by: Simon Glass --- tools/buildman/builder.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py index 1c6a38b232e..46ef4bca33f 100644 --- a/tools/buildman/builder.py +++ b/tools/buildman/builder.py @@ -141,8 +141,8 @@ class Config: def __hash__(self): val = 0 - for fname in self.config: - for key, value in self.config[fname].items(): + for fname, config in self.config.items(): + for key, value in config.items(): print(key, value) val = val ^ hash(key) & hash(value) return val @@ -415,8 +415,7 @@ class Builder: def __del__(self): """Get rid of all threads created by the builder""" - for t in self.threads: - del t + self.threads.clear() def signal_handler(self, signal, frame): sys.exit(1)