diff options
author | Tim Harder <radhermit@gmail.com> | 2019-12-05 19:18:41 -0700 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2019-12-05 19:44:18 -0700 |
commit | 266589877f57e46b2bd241eb17bfc28cfef19b2a (patch) | |
tree | 9979ff1b3d35acb6b09ea63788a0eac3a4f2e160 /src/pkgcheck/checks/unstable_only.py | |
parent | readme: clarify required deps (diff) | |
download | pkgcheck-266589877f57e46b2bd241eb17bfc28cfef19b2a.tar.gz pkgcheck-266589877f57e46b2bd241eb17bfc28cfef19b2a.tar.bz2 pkgcheck-266589877f57e46b2bd241eb17bfc28cfef19b2a.zip |
checks: use f-strings for various string formatting '%' usage
Diffstat (limited to 'src/pkgcheck/checks/unstable_only.py')
-rw-r--r-- | src/pkgcheck/checks/unstable_only.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pkgcheck/checks/unstable_only.py b/src/pkgcheck/checks/unstable_only.py index 94fc9689..11e978f7 100644 --- a/src/pkgcheck/checks/unstable_only.py +++ b/src/pkgcheck/checks/unstable_only.py @@ -2,7 +2,7 @@ from collections import defaultdict from pkgcore.ebuild.misc import sort_keywords from pkgcore.restrictions import packages, values -from snakeoil.strings import pluralism as _pl +from snakeoil.strings import pluralism from .. import addons, base, results, sources from . import GentooRepoCheck @@ -18,8 +18,10 @@ class UnstableOnly(results.PackageResult, results.Info): @property def desc(self): - return "for arch%s: [ %s ], all versions are unstable: [ %s ]" % ( - _pl(self.arches, plural='es'), ', '.join(self.arches), ', '.join(self.versions)) + es = pluralism(self.arches, plural='es') + arches = ', '.join(self.arches) + versions = ', '.join(self.versions) + return f'for arch{es}: [ {arches} ], all versions are unstable: [ {versions} ]' class UnstableOnlyCheck(GentooRepoCheck): |