From 340d45ca88363a919d0b8a304346d4e2feaf5ad0 Mon Sep 17 00:00:00 2001 From: sebres Date: Tue, 12 Dec 2023 13:37:56 +0100 Subject: [PATCH] amend to 70aef2c3c68d690232fe6c96ba2b6d84ca8af019: py3.12: silence warnings "invalid escape sequence" --- fail2ban/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fail2ban/helpers.py b/fail2ban/helpers.py index c2c22a27..b864fd15 100644 --- a/fail2ban/helpers.py +++ b/fail2ban/helpers.py @@ -284,7 +284,7 @@ def splitwords(s): """ if not s: return [] - return list(filter(bool, [v.strip() for v in re.split('[\s,]+', s)])) + return list(filter(bool, [v.strip() for v in re.split(r'[\s,]+', s)])) def _merge_dicts(x, y): """Helper to merge dicts.