Convert all classes to "new-type" Python classes

Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
Niels Thykier 2012-01-06 19:39:57 +01:00
parent 60aa770496
commit 9a7274db93
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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