1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-18 03:21:36 +02:00
(cherry picked from commit c0d0dcf71377b639d8c83421c830cd6d69ebec4d)
This commit is contained in:
Florent Daigniere 2024-06-19 14:58:34 +02:00 committed by Mergify
parent 600235f393
commit 2d2e9c4d8a

View File

@ -33,7 +33,7 @@ class LogFilter(object):
def __init__(self, stream, re_patterns):
self.stream = stream
if isinstance(re_patterns, list):
self.pattern = re.compile('|'.join([f'(?:{pattern})' for pattern in re_patterns]))
self.pattern = re.compile('|'.join([fr'(?:{pattern})' for pattern in re_patterns]))
elif isinstance(re_patterns, str):
self.pattern = re.compile(re_patterns)
else: