Skip to content

Commit 225dad0

Browse files
Ruff fix UP012: drop redundant "utf-8" encoding arg in profile.py
`.encode("utf-8")` and `.encode()` are equivalent. Ruff's UP012 prefers the shorter form.
1 parent 95baa84 commit 225dad0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ndi/cloud/profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def _aes_key_bytes() -> bytes:
105105
user = getpass.getuser()
106106
except Exception: # pragma: no cover - extreme defensive
107107
user = "unknown"
108-
seed = f"{host} {user} NDI Cloud".encode("utf-8")
108+
seed = f"{host} {user} NDI Cloud".encode()
109109
return hashlib.sha256(seed).digest()[:16]
110110

111111

0 commit comments

Comments
 (0)