aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskari Pirhonen <xxc3ncoredxx@gmail.com>2023-03-19 21:01:37 -0500
committerSam James <sam@gentoo.org>2023-03-21 23:52:40 +0000
commit7cd4343393b97ae8684ab53bbdd283e4788bd3b1 (patch)
treeaeeb7882b341936119829abd35c26d17292e2853 /bin/ebuild-ipc.py
parentman/*: Document NO_COLOR (diff)
downloadportage-7cd4343393b97ae8684ab53bbdd283e4788bd3b1.tar.gz
portage-7cd4343393b97ae8684ab53bbdd283e4788bd3b1.tar.bz2
portage-7cd4343393b97ae8684ab53bbdd283e4788bd3b1.zip
Convert %-formats to fstrings
Files under bin/ Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'bin/ebuild-ipc.py')
-rwxr-xr-xbin/ebuild-ipc.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/ebuild-ipc.py b/bin/ebuild-ipc.py
index df70850c0..059732eaf 100755
--- a/bin/ebuild-ipc.py
+++ b/bin/ebuild-ipc.py
@@ -163,10 +163,7 @@ try:
def _timeout_retry_msg(self, start_time, when):
time_elapsed = time.time() - start_time
portage.util.writemsg_level(
- portage.localization._(
- "ebuild-ipc timed out %s after %d seconds," + " retrying...\n"
- )
- % (when, time_elapsed),
+ f"ebuild-ipc timed out {when} after {time_elapsed} seconds, retrying...\n",
level=logging.ERROR,
noiselevel=-1,
)
@@ -290,8 +287,7 @@ try:
if retval != os.EX_OK:
portage.util.writemsg_level(
- "ebuild-ipc: %s: %s\n"
- % (msg, portage.localization._("subprocess failure: %s") % retval),
+ f"ebuild-ipc: {msg}: subprocess failure: {retval}\n",
level=logging.ERROR,
noiselevel=-1,
)