Cleanup: use static sets for contains checks, remove f-string use

This commit is contained in:
Campbell Barton
2024-02-28 11:02:49 +11:00
parent f04bd961fd
commit 4f8db2ee67
6 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -101,10 +101,10 @@ def get_effective_architecture(args: argparse.Namespace) -> str:
architecture = platform.machine().lower()
# Normalize the architecture name.
if architecture in ("x86_64", "amd64"):
if architecture in {"x86_64", "amd64"}:
architecture = "x64"
assert (architecture in ("x64", "arm64"))
assert (architecture in {"x64", "arm64"})
return architecture