Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/addons/oncewrapper.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/oncewrapper.py')
-rw-r--r--addons/oncewrapper.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/oncewrapper.py b/addons/oncewrapper.py
index 3f6b2d0..f263dd7 100644
--- a/addons/oncewrapper.py
+++ b/addons/oncewrapper.py
@@ -26,11 +26,10 @@ class OnceWrapper(Action):
action = TAddonProperty()
- def __init__(self, action):
- Action.__init__(self)
+ def __init__(self, **kwargs):
+ super(OnceWrapper, self).__init__(**kwargs)
self._called = False
self._need_undo = False
- self.action = action
def do(self, **kwargs):
"""