From f47ae1ad4f7eb5a5da71dad810b73d4b0829facd Mon Sep 17 00:00:00 2001 From: David Halter Date: Tue, 4 Sep 2012 15:55:11 +0200 Subject: [PATCH] fixed a dynamic array bug, that was created, because of the InstanceElement changes --- dynamic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamic.py b/dynamic.py index d5d56864..d4c1744a 100644 --- a/dynamic.py +++ b/dynamic.py @@ -214,7 +214,7 @@ def _check_array_additions(compare_array, module, is_list): # must be instance stmt = element.var_args.parent_stmt() if isinstance(stmt, evaluate.InstanceElement): - stop_classes = list(stop_classes) + [parsing.Function] + stop_classes = list(stop_classes) + [evaluate.Function] return stmt.get_parent_until(stop_classes) search_names = ['append', 'extend', 'insert'] if is_list else \