summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-05-24 09:57:38 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-05-24 17:18:05 +0200
commit8cf94fc78a1b53bfa09d6f370aadb860ff30e167 (patch)
tree5364643cc02346bf33ef1b4cb5e0f022868348b7
parenta037103f2dcbfe2059bda208cbc3f2c5f8b94eb2 (diff)
Format: Run Black
-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"