Commit 90a4640e authored by Nicolas Dumazet's avatar Nicolas Dumazet

list.extend(iterable) is much better than list += [x for x in iterable]


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32720 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d364bd1b
...@@ -479,8 +479,7 @@ class XMLMatrix(Folder): ...@@ -479,8 +479,7 @@ class XMLMatrix(Folder):
result = [] result = []
for value in cell_range.itervalues(): for value in cell_range.itervalues():
result_items = sorted(value.iteritems(), key=lambda x:x[1]) result_items = sorted(value.iteritems(), key=lambda x:x[1])
result_items = [x[0] for x in result_items] result.extend(x[0] for x in result_items)
result += [result_items]
return result return result
security.declareProtected( Permissions.ModifyPortalContent, 'newCell' ) security.declareProtected( Permissions.ModifyPortalContent, 'newCell' )
......
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