Mercurial > getan
changeset 150:7ab5b887a7c5
Always call super constructor of states
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Thu, 06 Dec 2012 12:28:31 +0100 |
parents | ac7c6594fc0e |
children | 1e35c24708dd |
files | getan/states.py |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/getan/states.py Thu Dec 06 12:26:33 2012 +0100 +++ b/getan/states.py Thu Dec 06 12:28:31 2012 +0100 @@ -253,8 +253,7 @@ class HandleUserInputState(State): def __init__(self, controller, view, state, footer): - self.controller = controller - self.view = view + super(HandleUserInputState, self).__init__(controller, view) self.state = state self.footer = footer @@ -374,9 +373,8 @@ class EntryListState(State): def __init__(self, state, controller, view): + super(EntryListState, self).__init__(controller, view) self.projectlist_state = state - self.controller = controller - self.view = view def keypress(self, key): logger.debug("EntryListState: pressed key '%r'" % key)