blob: 6cf4e194b0898dd2f3dffafa0cdd166467e5c5fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|