From ed20a9a5b9039319dd8913dfecf640e6eafee28b Mon Sep 17 00:00:00 2001 From: sebres Date: Tue, 7 May 2024 12:51:14 +0200 Subject: [PATCH] there is no systemd < 204 and pyinotify < 0.8.3 for supported python3 versions anymore --- fail2ban/server/filterpyinotify.py | 4 ---- fail2ban/server/filtersystemd.py | 2 -- 2 files changed, 6 deletions(-) diff --git a/fail2ban/server/filterpyinotify.py b/fail2ban/server/filterpyinotify.py index c6972ced..f2f31e6f 100644 --- a/fail2ban/server/filterpyinotify.py +++ b/fail2ban/server/filterpyinotify.py @@ -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: diff --git a/fail2ban/server/filtersystemd.py b/fail2ban/server/filtersystemd.py index 2d4f862b..abd66e1f 100644 --- a/fail2ban/server/filtersystemd.py +++ b/fail2ban/server/filtersystemd.py @@ -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