there is no systemd < 204 and pyinotify < 0.8.3 for supported python3 versions anymore

pull/3728/head
sebres 2024-05-07 12:51:14 +02:00
parent a763fbbdfd
commit ed20a9a5b9
2 changed files with 0 additions and 6 deletions

View File

@ -36,10 +36,6 @@ from .utils import Utils
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
# Even though imports -- might be dysfunctional, e.g. as on kfreebsd
try:

View File

@ -26,8 +26,6 @@ import os
import time
from systemd import journal
if getattr(journal, "__version__", "0").split(".") < "204".split("."):
raise ImportError("Fail2Ban requires systemd >= 204")
from .failmanager import FailManagerEmpty
from .filter import JournalFilter, Filter