Created
December 2, 2013 23:35
-
-
Save anonymous/7761140 to your computer and use it in GitHub Desktop.
attachment for the BitBucket issue #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/rope/base/evaluate.py 2010-02-15 08:29:02.312672066 +0330 | |
+++ b/rope/base/evaluate.py 2010-02-15 08:31:58.221578104 +0330 | |
@@ -292,13 +292,15 @@ | |
else: | |
return | |
if function_name in pyobject: | |
- call_function = pyobject[function_name].get_object() | |
+ called = pyobject[function_name].get_object() | |
+ if not called or not isinstance(called, pyobjects.AbstractFunction): | |
+ return | |
args = [node] | |
if other_args: | |
args += other_args | |
arguments_ = arguments.Arguments(args, self.scope) | |
self.result = rope.base.pynames.UnboundName( | |
- pyobject=call_function.get_returned_object(arguments_)) | |
+ pyobject=called.get_returned_object(arguments_)) | |
def _Lambda(self, node): | |
self.result = rope.base.pynames.UnboundName( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment