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

@@ -182,9 +182,7 @@ def main():
private_key, private_key_content, passphrase=passphrase
)
except KeyParsingError as e:
raise ModuleFailException(
"Error while parsing private key: {msg}".format(msg=e.msg)
)
raise ModuleFailException(f"Error while parsing private key: {e.msg}")
# Step 2: sign revokation request with private key
jws_header = {
"alg": private_key_data["alg"],