diff options
Diffstat (limited to 'net-analyzer/fail2ban/files')
-rw-r--r-- | net-analyzer/fail2ban/files/fail2ban-0.11.2-fix-py3.10-collections.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net-analyzer/fail2ban/files/fail2ban-0.11.2-fix-py3.10-collections.patch b/net-analyzer/fail2ban/files/fail2ban-0.11.2-fix-py3.10-collections.patch new file mode 100644 index 000000000000..6cf4e194b089 --- /dev/null +++ b/net-analyzer/fail2ban/files/fail2ban-0.11.2-fix-py3.10-collections.patch @@ -0,0 +1,33 @@ +--- a/fail2ban/server/action.py ++++ b/fail2ban/server/action.py +@@ -30,7 +30,7 @@ import tempfile + import threading + import time + from abc import ABCMeta +-from collections import MutableMapping ++from collections.abc import MutableMapping + + from .failregex import mapTag2Opt + from .ipdns import DNSUtils +--- a/fail2ban/server/actions.py ++++ b/fail2ban/server/actions.py +@@ -28,7 +28,7 @@ import logging + import os + import sys + import time +-from collections import Mapping ++from collections.abc import Mapping + try: + from collections import OrderedDict + except ImportError: +--- a/fail2ban/server/jails.py ++++ b/fail2ban/server/jails.py +@@ -22,7 +22,7 @@ __copyright__ = "Copyright (c) 2004 Cyril Jaquier, 2013- Yaroslav Halchenko" + __license__ = "GPL" + + from threading import Lock +-from collections import Mapping ++from collections.abc import Mapping + + from ..exceptions import DuplicateJailException, UnknownJailException + from .jail import Jail |