diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-05-22 16:32:07 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-05-22 17:25:55 +0200 |
commit | f94c741602dc7ce8acb4381e097e7da8cc259dc4 (patch) | |
tree | 1ea37c7b163249be12987f33ea93ad6b2dfbb11c | |
parent | a1050583443cb8a9f2c9bd96dee8c32c85315012 (diff) | |
download | clufter-f94c741602dc7ce8acb4381e097e7da8cc259dc4.tar.gz clufter-f94c741602dc7ce8acb4381e097e7da8cc259dc4.tar.xz clufter-f94c741602dc7ce8acb4381e097e7da8cc259dc4.zip |
command_context: avoid early-closure trap, defer to ad-hoc
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r-- | command_context.py | 4 |
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) |