From 82ebc0e541fda84c4315967570a66c4c8a7b1dbf Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Thu, 25 Apr 2024 11:38:50 +0200 Subject: Format: Run Ruff --- internal/verify/test_data/generate_forged.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal') 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" -- cgit v1.2.3