New-style classes

This commit is contained in:
Piotr Mitros
2012-01-06 19:50:23 -05:00
parent 138ff04f77
commit 2aec53aa83
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ def strip_dict(d):
(type(d[k]) == float or type(d[k]) == int) ])
return d
class LoncapaProblem():
class LoncapaProblem(object):
def get_state(self):
''' Stored per-user session data neeeded to:
1) Recreate the problem

View File

@@ -1,4 +1,4 @@
class XModule:
class XModule(object):
''' Implements a generic learning module.
Initialized on access with __init__, first time with state=None, and
then with state