mirror of https://github.com/fail2ban/fail2ban
there is no systemd < 204 and pyinotify < 0.8.3 for supported python3 versions anymore
parent
a763fbbdfd
commit
ed20a9a5b9
|
@ -36,10 +36,6 @@ from .utils import Utils
|
||||||
from ..helpers import getLogger
|
from ..helpers import getLogger
|
||||||
|
|
||||||
|
|
||||||
if not hasattr(pyinotify, '__version__') \
|
|
||||||
or pyinotify.__version__.split(".") < '0.8.3'.split("."): # pragma: no cover
|
|
||||||
raise ImportError("Fail2Ban requires pyinotify >= 0.8.3")
|
|
||||||
|
|
||||||
# Verify that pyinotify is functional on this system
|
# Verify that pyinotify is functional on this system
|
||||||
# Even though imports -- might be dysfunctional, e.g. as on kfreebsd
|
# Even though imports -- might be dysfunctional, e.g. as on kfreebsd
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -26,8 +26,6 @@ import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from systemd import journal
|
from systemd import journal
|
||||||
if getattr(journal, "__version__", "0").split(".") < "204".split("."):
|
|
||||||
raise ImportError("Fail2Ban requires systemd >= 204")
|
|
||||||
|
|
||||||
from .failmanager import FailManagerEmpty
|
from .failmanager import FailManagerEmpty
|
||||||
from .filter import JournalFilter, Filter
|
from .filter import JournalFilter, Filter
|
||||||
|
|
Loading…
Reference in New Issue