summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/portage/output.py')
-rw-r--r--lib/portage/output.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/portage/output.py b/lib/portage/output.py
index 880686992..cdeeb18e9 100644
--- a/lib/portage/output.py
+++ b/lib/portage/output.py
@@ -807,8 +807,8 @@ class ProgressBar:
def _set_desc(self):
self._desc = "{}{}".format(
- "%s: " % self._title if self._title else "",
- "%s" % self._label if self._label else "",
+ f"{self._title}: " if self._title else "",
+ f"{self._label}" if self._label else "",
)
if len(self._desc) > self._desc_max_length: # truncate if too long
self._desc = f"{self._desc[:self._desc_max_length - 3]}..."