Replace % and str.format() with f-strings (#875)

* Replace % and str.format() with f-strings.

* Apply suggestions from review.
This commit is contained in:
Felix Fontein
2025-05-01 11:50:10 +02:00
committed by GitHub
parent d8f838c365
commit 641e63b08c
86 changed files with 544 additions and 1036 deletions

View File

@@ -144,7 +144,7 @@ def test_default_key_params(keytype, size, passphrase, comment):
"ed25519": 256,
}
default_comment = "%s@%s" % (getuser(), gethostname())
default_comment = f"{getuser()}@{gethostname()}"
pair = OpensshKeypair.generate(
keytype=keytype, size=size, passphrase=passphrase, comment=comment
)