mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
RF: make Jail new style class, avoiding multiple inheritance with object
This commit is contained in:
parent
78eb4d95eb
commit
e2a68bb02d
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ from ..helpers import getLogger
|
|||
logSys = getLogger(__name__)
|
||||
|
||||
|
||||
class Jail:
|
||||
class Jail(object):
|
||||
"""Fail2Ban jail, which manages a filter and associated actions.
|
||||
|
||||
The class handles the initialisation of a filter, and actions. It's
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ from ..server.jail import Jail
|
|||
from ..server.actions import Actions
|
||||
|
||||
|
||||
class DummyJail(Jail, object):
|
||||
class DummyJail(Jail):
|
||||
"""A simple 'jail' to suck in all the tickets generated by Filter's
|
||||
"""
|
||||
def __init__(self, backend=None):
|
||||
|
|
|
|||
Loading…
Reference in a new issue