From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 57DD9158015 for ; Fri, 22 Dec 2023 02:31:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2CA062BC020; Fri, 22 Dec 2023 02:31:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E9C3D2BC020 for ; Fri, 22 Dec 2023 02:31:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CD7F33408DD for ; Fri, 22 Dec 2023 02:31:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1CFA31256 for ; Fri, 22 Dec 2023 02:31:46 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1702673639.5f8628d611c03f77bbcf245c025b85cf60b88431.vapier@gentoo> Subject: [gentoo-commits] proj/pax-utils:master commit in: / X-VCS-Repository: proj/pax-utils X-VCS-Files: lddtree.py X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 5f8628d611c03f77bbcf245c025b85cf60b88431 X-VCS-Branch: master Date: Fri, 22 Dec 2023 02:31:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 096789c9-72e6-4ccf-941a-86075ed48ced X-Archives-Hash: aeeb7a5bda9901fca80cb099c42d4717 commit: 5f8628d611c03f77bbcf245c025b85cf60b88431 Author: Mike Frysinger chromium org> AuthorDate: Fri Dec 15 20:41:31 2023 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Fri Dec 15 20:53:59 2023 +0000 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=5f8628d6 lddtree: use f-string in warn message Signed-off-by: Mike Frysinger chromium.org> Signed-off-by: Mike Frysinger gentoo.org> lddtree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lddtree.py b/lddtree.py index 2b8b9c4..576d3d3 100755 --- a/lddtree.py +++ b/lddtree.py @@ -64,7 +64,7 @@ from elftools.elf.elffile import ELFFile def warn(msg: Any, prefix: Optional[str] = "warning") -> None: """Write |msg| to stderr with a |prefix| before it""" - print("%s: %s: %s" % (os.path.basename(sys.argv[0]), prefix, msg), file=sys.stderr) + print(f"{os.path.basename(sys.argv[0])}: {prefix}: {msg}", file=sys.stderr) def err(msg: Any, status: Optional[int] = 1) -> None: