Cleanup: use percentage formatting

`str.format` and `f-string` use was minimal.
Prefer using a single style of string formatting
unless an alternative is more widely adopted.
This commit is contained in:
Campbell Barton
2020-06-26 12:30:03 +10:00
parent 2db4a81fe4
commit 646ef49e19
13 changed files with 44 additions and 40 deletions

View File

@@ -450,7 +450,7 @@ class ToolSelectPanelHelper:
@classmethod
def _km_action_simple(cls, kc_default, kc, context_descr, label, keymap_fn):
km_idname = f"{cls.keymap_prefix:s} {context_descr:s}, {label:s}"
km_idname = "%s %s, %s" % (cls.keymap_prefix, context_descr, label)
km = kc.keymaps.get(km_idname)
km_kwargs = dict(space_type=cls.bl_space_type, region_type='WINDOW', tool=True)
if km is None: