summaryrefslogtreecommitdiff
path: root/fail2ban/server/jails.py
diff options
context:
space:
mode:
Diffstat (limited to 'fail2ban/server/jails.py')
-rw-r--r--fail2ban/server/jails.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/fail2ban/server/jails.py b/fail2ban/server/jails.py
index 972a8c4b..27e12ddf 100644
--- a/fail2ban/server/jails.py
+++ b/fail2ban/server/jails.py
@@ -22,7 +22,10 @@ __copyright__ = "Copyright (c) 2004 Cyril Jaquier, 2013- Yaroslav Halchenko"
__license__ = "GPL"
from threading import Lock
-from collections import Mapping
+try:
+ from collections.abc import Mapping
+except ImportError:
+ from collections import Mapping
from ..exceptions import DuplicateJailException, UnknownJailException
from .jail import Jail