Remove every old-style class.

This commit is contained in:
Emmanuel Gil Peyrot 2013-01-18 17:55:35 +01:00
commit 88074cd284
3 changed files with 56 additions and 56 deletions

View file

@ -37,7 +37,7 @@ SAVEFILE_PARAM_XML="/param" #xml parameters template
SAVEFILE_DATABASE="/sat.db"
class Params():
class Params(object):
"""This class manage parameters with xml"""
### TODO: add desciption in params
@ -528,7 +528,7 @@ class Params():
self.host.bridge.paramUpdate(name, value, category, profile)
self.storage.setIndParam(category, name, value, profile)
class Memory:
class Memory(object):
"""This class manage all persistent informations"""
def __init__(self, host):

View file

@ -24,7 +24,7 @@ from logging import debug, info, warning, error
class MemoryNotInitializedError(Exception):
pass
class PersistentDict:
class PersistentDict(object):
"""A dictionary which save persistently each value assigned
/!\ be careful, each assignment means a database write
/!\ Memory must be initialised before loading/setting value with instances of this class"""

View file

@ -27,7 +27,7 @@ import os.path
import time
import cPickle as pickle
class SqliteStorage():
class SqliteStorage(object):
"""This class manage storage with Sqlite database"""