Commit 7c069b26 authored by Nicolas Dumazet's avatar Nicolas Dumazet

do not build index_list as it's not necessary


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32819 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ce72a875
...@@ -363,11 +363,8 @@ class XMLMatrix(Folder): ...@@ -363,11 +363,8 @@ class XMLMatrix(Folder):
if self.get(cell_id) is not None: if self.get(cell_id) is not None:
cell_id_list.append(cell_id) cell_id_list.append(cell_id)
for cell_id in cell_id_list: for cell_id in cell_id_list:
index_list = [] for i, index in enumerate(cell_id[len(base_id)+1:].split('_')):
for index in cell_id[len(base_id)+1:].split('_'): if int(index) >= size_list[i]:
index_list.append(int(index))
for i, index in enumerate(index_list):
if index >= size_list[i]:
removed_cell_id_list.append(cell_id) removed_cell_id_list.append(cell_id)
break break
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment