From 2aec53aa83b8cfa0636306ac07aff7af576221a4 Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Fri, 6 Jan 2012 19:50:23 -0500 Subject: [PATCH] New-style classes --- courseware/capa_problem.py | 2 +- courseware/x_module.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/courseware/capa_problem.py b/courseware/capa_problem.py index 97c09fa2b5..f635470bbb 100644 --- a/courseware/capa_problem.py +++ b/courseware/capa_problem.py @@ -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 diff --git a/courseware/x_module.py b/courseware/x_module.py index 9773bf74af..c9ece2816f 100644 --- a/courseware/x_module.py +++ b/courseware/x_module.py @@ -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