Convert all classes to "new-type" Python classes

Signed-off-by: Niels Thykier <niels@thykier.net>
bzr-import-20160707
Niels Thykier 13 years ago
parent 60aa770496
commit 9a7274db93

@ -237,7 +237,7 @@ RDEPENDS = 9
RCONFLICTS = 10 RCONFLICTS = 10
class Britney: class Britney(object):
"""Britney, the Debian testing updater script """Britney, the Debian testing updater script
This is the script that updates the testing distribution. It is executed This is the script that updates the testing distribution. It is executed

@ -15,7 +15,7 @@
import readline import readline
import bisect import bisect
class Completer: class Completer(object):
"""Completer class """Completer class
This class provides a readline completer for the britney hint-tester This class provides a readline completer for the britney hint-tester

@ -14,7 +14,7 @@
from migrationitem import HintItem from migrationitem import HintItem
class HintCollection: class HintCollection(object):
def __init__(self): def __init__(self):
self._hints = [] self._hints = []
@ -35,7 +35,7 @@ class HintCollection:
def add_hint(self, hint, user): def add_hint(self, hint, user):
self._hints.append(Hint(hint, user)) self._hints.append(Hint(hint, user))
class Hint: class Hint(object):
def __init__(self, hint, user): def __init__(self, hint, user):
self._hint = hint self._hint = hint
self._user = user self._user = user

Loading…
Cancel
Save