summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2024-04-25 11:38:50 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-04-26 16:21:18 +0200
commit82ebc0e541fda84c4315967570a66c4c8a7b1dbf (patch)
tree6cefe221c24ec80c944c00a3775d9266bb6ef281 /internal
parent9a3d9d701f12cda91cae0193968b3068408b7cbf (diff)
Format: Run Ruff
Diffstat (limited to 'internal')
-rw-r--r--internal/verify/test_data/generate_forged.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/verify/test_data/generate_forged.py b/internal/verify/test_data/generate_forged.py
index 9d42adc..0040161 100644
--- a/internal/verify/test_data/generate_forged.py
+++ b/internal/verify/test_data/generate_forged.py
@@ -29,9 +29,9 @@ with open("server_list.json.forged_pure.minisig", "wb") as f:
with open("server_list.json.wrong_key.minisig", "rb") as f:
siglines = f.readlines()
-siglines[
- 0
-] = b"untrusted comment: this signature was created with wrong_secret.key but has key ID changed to that of public.key\n"
+siglines[0] = (
+ b"untrusted comment: this signature was created with wrong_secret.key but has key ID changed to that of public.key\n"
+)
sig_wrong = base64.b64decode(siglines[1])
siglines[1] = (
base64.b64encode(sig_wrong[:2] + sig[2 : 2 + 8] + sig_wrong[2 + 8 :]) + b"\n"