From 69e690affe94eb37308d1eb551b34cd32323aae1 Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Thu, 28 Jul 2022 14:12:19 +0100 Subject: Tests: added flags to search functions in proto.py. Also removed unnesessary re.compile() calls. --- test/unit/http.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/unit/http.py') diff --git a/test/unit/http.py b/test/unit/http.py index b4a1a17b..522d2ea6 100644 --- a/test/unit/http.py +++ b/test/unit/http.py @@ -209,9 +209,7 @@ class TestHTTP: return {} headers_text, body = m.group(1), m.group(2) - - p = re.compile('(.*?)\x0d\x0a?', re.M | re.S) - headers_lines = p.findall(headers_text) + headers_lines = re.findall('(.*?)\x0d\x0a?', headers_text, re.M | re.S) status = re.search( r'^HTTP\/\d\.\d\s(\d+)|$', headers_lines.pop(0) -- cgit