summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--command_context.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/command_context.py b/command_context.py
index 09ef47e..2cb43d0 100644
--- a/command_context.py
+++ b/command_context.py
@@ -79,8 +79,8 @@ class CommandContext(CommandContextBase):
ret = obj.__getattribute__(name)
if callable(ret):
ret = \
- lambda this, *args, **kwargs: \
- ret(this, this, *args, **kwargs)
+ lambda *args, **kwargs: \
+ obj.__getattribute__(name)(self, *args, **kwargs)
else:
try:
ret = super(wrapped, self).__getattribute__(name)