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 47733158089 for ; Sun, 22 Oct 2023 19:03:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4AA892BC017; Sun, 22 Oct 2023 19:03:36 +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 25FEA2BC017 for ; Sun, 22 Oct 2023 19:03:36 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1C9F0335CA6 for ; Sun, 22 Oct 2023 19:03:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9390512AD for ; Sun, 22 Oct 2023 19:03:33 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1698001137.c87cd3213723459e1b2957cbf0f35f3a753d11b6.sam@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: lib/portage/sync/modules/git/ X-VCS-Repository: proj/portage X-VCS-Files: lib/portage/sync/modules/git/git.py X-VCS-Directories: lib/portage/sync/modules/git/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: c87cd3213723459e1b2957cbf0f35f3a753d11b6 X-VCS-Branch: master Date: Sun, 22 Oct 2023 19:03:33 +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: e85622d5-0727-43e7-aeb3-11132e9b71ab X-Archives-Hash: c094a63ae1389d1ab0e4de3a74d07316 commit: c87cd3213723459e1b2957cbf0f35f3a753d11b6 Author: Florian Schmaus gentoo org> AuthorDate: Thu Oct 19 09:02:49 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sun Oct 22 18:58:57 2023 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=c87cd321 sync/git: refactor fetch git_cmd into f-string Signed-off-by: Florian Schmaus gentoo.org> Closes: https://github.com/gentoo/portage/pull/1135 Signed-off-by: Sam James gentoo.org> lib/portage/sync/modules/git/git.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/portage/sync/modules/git/git.py b/lib/portage/sync/modules/git/git.py index a2c96e8098..1914122d9d 100644 --- a/lib/portage/sync/modules/git/git.py +++ b/lib/portage/sync/modules/git/git.py @@ -325,11 +325,7 @@ class GitSync(NewBase): elif not quiet: writemsg_level(" ".join(git_set_remote_url_cmd) + "\n") - git_cmd = "{} fetch {}{}".format( - self.bin_command, - git_remote, - git_cmd_opts, - ) + git_cmd = f"{self.bin_command} fetch {git_remote}{git_cmd_opts}" if not quiet: writemsg_level(git_cmd + "\n")