Commit ddc40b8d authored by Nicolas Dumazet's avatar Nicolas Dumazet

dict.itervalues() seems more appropriate here


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32717 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4d9232d5
......@@ -477,8 +477,8 @@ class XMLMatrix(Folder):
return None
result = []
for i in range(0,len(cell_range.keys())):
result_items = cell_range[i].items()
for value in cell_range.itervalues():
result_items = value.items()
result_items.sort(lambda x, y: x[1]-y[1])
result_items = [x[0] for x in result_items]
result += [result_items]
......
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