diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-05-24 09:57:38 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-05-24 17:18:05 +0200 |
| commit | 8cf94fc78a1b53bfa09d6f370aadb860ff30e167 (patch) | |
| tree | 5364643cc02346bf33ef1b4cb5e0f022868348b7 /internal | |
| parent | a037103f2dcbfe2059bda208cbc3f2c5f8b94eb2 (diff) | |
Format: Run Black
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/verify/test_data/generate_forged.py | 6 |
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" |
