dynamic module searching is not used in check_array_additions

This commit is contained in:
David Halter
2012-10-01 11:14:50 +02:00
parent 5021a6bee9
commit 7e1035f8a8

View File

@@ -279,6 +279,9 @@ def _check_array_additions(compare_array, module, is_list):
stop_classes = list(stop_classes) + [evaluate.Function]
return stmt.get_parent_until(stop_classes)
temp_param_add = settings.dynamic_params_for_other_modules
settings.dynamic_params_for_other_modules = False
search_names = ['append', 'extend', 'insert'] if is_list else \
['add', 'update']
comp_arr_parent = get_execution_parent(compare_array, evaluate.Execution)
@@ -309,6 +312,8 @@ def _check_array_additions(compare_array, module, is_list):
continue
res += check_calls(_scan_array(stmt.get_assignment_calls(), n), n)
evaluate.follow_statement.pop_stmt()
# reset settings
settings.dynamic_params_for_other_modules = temp_param_add
return res