From daa13eb5ddbcd40750a4a8ee1e608341dd6005f5 Mon Sep 17 00:00:00 2001 From: sebres Date: Wed, 29 Mar 2017 18:33:33 +0200 Subject: [PATCH] no cover for unreachable and abstract --- fail2ban/server/action.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fail2ban/server/action.py b/fail2ban/server/action.py index 8afeea6e..9d518cfd 100644 --- a/fail2ban/server/action.py +++ b/fail2ban/server/action.py @@ -203,17 +203,17 @@ class ActionBase(object): self._name = name self._logSys = getLogger("fail2ban.%s" % self.__class__.__name__) - def start(self): + def start(self): # pragma: no cover - abstract """Executed when the jail/action is started. """ pass - def stop(self): + def stop(self): # pragma: no cover - abstract """Executed when the jail/action is stopped. """ pass - def ban(self, aInfo): + def ban(self, aInfo): # pragma: no cover - abstract """Executed when a ban occurs. Parameters @@ -224,7 +224,7 @@ class ActionBase(object): """ pass - def unban(self, aInfo): + def unban(self, aInfo): # pragma: no cover - abstract """Executed when a ban expires. Parameters @@ -399,7 +399,7 @@ class CommandAction(ActionBase): # check the action depends on family (conditional): if self._startOnDemand: return True - elif self.__started.get(family): + elif self.__started.get(family): # pragma: no cover - normally unreachable return True return self._executeOperation('', 'starting', family=family)