Skip to content

Instantly share code, notes, and snippets.

Created December 2, 2013 23:35
Show Gist options
  • Save anonymous/7761140 to your computer and use it in GitHub Desktop.
Save anonymous/7761140 to your computer and use it in GitHub Desktop.
attachment for the BitBucket issue #5
--- 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