use f-string instead of format call (extra-edit)

ruff 'UP030,UP032' --extend-exclude "src/calibre/*" !partial
This commit is contained in:
un-pogaz
2025-01-24 11:14:16 +01:00
parent 02854d8b8c
commit 19994000c9
31 changed files with 132 additions and 144 deletions
+2 -2
View File
@@ -56,11 +56,11 @@ class Bug:
if int(bug) > 100000 and action != 'See':
self.close_bug(bug, action)
return match.group() + f' [{summary}]({LAUNCHPAD_BUG.format(bug)})'
return match.group() + ' ({})'.format(summary)
return match.group() + f' ({summary})'
return match.group()
def close_bug(self, bug, action):
print('Closing bug #{}'.format(bug))
print(f'Closing bug #{bug}')
suffix = (
'The fix will be in the next release. '
'calibre is usually released every alternate Friday.'