mirror of https://github.com/fail2ban/fail2ban
amend to 70aef2c3c68d690232fe6c96ba2b6d84ca8af019: py3.12: silence warnings "invalid escape sequence"
parent
26597f625d
commit
340d45ca88
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue