1
0
forked from VimPlug/jedi

wrap instance element creation so that it only contains functions and statements, not CompiledObject or Instance.

This commit is contained in:
Dave Halter
2014-07-31 13:16:11 +02:00
parent 870abe73d4
commit 0fbd5efefd
3 changed files with 28 additions and 16 deletions

View File

@@ -399,7 +399,7 @@ def _check_array_additions(evaluator, compare_array, module, is_list):
# InstanceElements are special, because they don't get copied,
# but have this wrapper around them.
if isinstance(comp_arr_parent, er.InstanceElement):
stmt = er.InstanceElement(comp_arr_parent.instance, stmt)
stmt = er.get_instance_el(comp_arr_parent.instance, stmt)
if evaluator.recursion_detector.push_stmt(stmt):
# check recursion