Commit d02ba61a authored by Nicolas Dumazet's avatar Nicolas Dumazet

several list.append => one list.extend


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32726 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dfb4a06b
...@@ -496,11 +496,10 @@ class XMLMatrix(Folder): ...@@ -496,11 +496,10 @@ class XMLMatrix(Folder):
cell_id_list = [base_id] cell_id_list = [base_id]
base_item = self.index[base_id] base_item = self.index[base_id]
for i, my_id in enumerate(kw): try:
try: cell_id_list.extend(base_item[i][my_id] for i, my_id in enumerate(kw))
cell_id_list.append(base_item[i][my_id]) except KeyError:
except KeyError: raise KeyError, 'Invalid key: %s' % str(kw)
raise KeyError, 'Invalid key: %s' % str(kw)
cell_id = "_".join(cell_id_list) cell_id = "_".join(cell_id_list)
......
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