From 3ea5615cacaf7dd3d7a059eea81492891196a3fb Mon Sep 17 00:00:00 2001 From: Edvard Rejthar Date: Tue, 7 Jan 2025 17:20:35 +0100 Subject: [PATCH] WIP --- test_.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test_.py b/test_.py index bdfa2e8..36e4d92 100644 --- a/test_.py +++ b/test_.py @@ -1040,8 +1040,7 @@ def test_long_attachment_filename(self): def verify_inline_message(txt: str): boundary = re.search(r'boundary="(.*)"', txt).group(1) - reg = fr'{ - boundary}.*{boundary}\n(.*)\n--{boundary}.*(-----BEGIN PGP SIGNATURE-----.*-----END PGP SIGNATURE-----)' + reg = (fr'{boundary}.*{boundary}\n(.*)\n--{boundary}.*(-----BEGIN PGP SIGNATURE-----.*-----END PGP SIGNATURE-----)') m = re.search(reg, txt, re.DOTALL) return e._gpg_verify(m[2].encode(), m[1].encode())