Commit 9834697f authored by Nicolas Dumazet's avatar Nicolas Dumazet

use itervalues


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32742 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bae11843
...@@ -514,11 +514,7 @@ class XMLMatrix(Folder): ...@@ -514,11 +514,7 @@ class XMLMatrix(Folder):
if not self.index.has_key(base_id): if not self.index.has_key(base_id):
return () return ()
index = self.index[base_id] index = self.index[base_id]
id_tuple = [] id_tuple = [v.keys() for v in index.itervalues()]
append = id_tuple.append
for i in xrange(0, len(index)):
t = index[i]
append(t.keys())
if len(id_tuple) == 0: if len(id_tuple) == 0:
return () return ()
return cartesianProduct(id_tuple) return cartesianProduct(id_tuple)
......
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