# HG changeset patch # User Björn Ricks # Date 1351689743 -3600 # Node ID 92b7582b8f4423827116e8414cf8c22b004e28f1 # Parent ce707fbb96668f1240c02779a68984168960e496 Use new style classes diff -r ce707fbb9666 -r 92b7582b8f44 getan/controller.py --- a/getan/controller.py Wed Oct 31 14:21:44 2012 +0100 +++ b/getan/controller.py Wed Oct 31 14:22:23 2012 +0100 @@ -18,7 +18,8 @@ logger = logging.getLogger() -class GetanController: +class GetanController(object): + def __init__(self, backend, pv_class, ev_class): self.ev_class = ev_class self.pv_class = pv_class diff -r ce707fbb9666 -r 92b7582b8f44 getan/project.py --- a/getan/project.py Wed Oct 31 14:21:44 2012 +0100 +++ b/getan/project.py Wed Oct 31 14:22:23 2012 +0100 @@ -10,7 +10,7 @@ from datetime import datetime, timedelta -class Project: +class Project(object): def __init__(self, id, key, desc, total): self.id = id @@ -60,7 +60,7 @@ return total -class Entry: +class Entry(object): def __init__(self, id, project_id, start, end, desc): self.id = id