Fixed UP032 (f-string): Use f-string instead of format call

This commit is contained in:
Teal Dulcet
2024-03-10 07:56:49 -04:00
committed by Joshua Tauberer
parent 3111cf56de
commit c719fce40a
12 changed files with 45 additions and 45 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ def restart_fail2ban_service(final=False):
if not final:
# Stop recidive jails during testing.
command += " && sudo fail2ban-client stop recidive"
os.system('{} "{}"'.format(ssh_command, command))
os.system(f'{ssh_command} "{command}"')
def testfunc_runner(i, testfunc, *args):
print(i+1, end=" ", flush=True)