python: use f-strings instead of percent-encoding

This commit is contained in:
link2xt
2023-02-15 16:33:05 +00:00
parent b3ecbbc8b3
commit 4f68e94fb3
3 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ def test_db_busy_error(acfactory, tmpdir):
def log(string):
with log_lock:
print("%3.2f %s" % (time.time() - starttime, string))
print(f"{time.time() - starttime:3.2f} {string}")
# make a number of accounts
accounts = acfactory.get_many_online_accounts(3)