RF: make Jail new style class, avoiding multiple inheritance with object

pull/1346/head
Yaroslav Halchenko 10 years ago committed by sebres
parent 78eb4d95eb
commit e2a68bb02d

@ -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…
Cancel
Save