[rset] use .iteritems() instead of items()
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 18 Oct 2011 17:08:05 +0200
changeset 7968 92303e2ed77a
parent 7967 c87b87b62f8f
child 7970 83075d897943
[rset] use .iteritems() instead of items()
rset.py
--- a/rset.py	Tue Oct 18 15:52:50 2011 +0200
+++ b/rset.py	Tue Oct 18 17:08:05 2011 +0200
@@ -480,9 +480,9 @@
             eschema = entity.e_schema
             eid_col, attr_cols, rel_cols = self._rset_structure(eschema, col)
             entity.eid = rowvalues[eid_col]
-            for attr, col_idx in attr_cols.items():
+            for attr, col_idx in attr_cols.iteritems():
                 entity.cw_attr_cache[attr] = rowvalues[col_idx]
-            for (rtype, role), col_idx in rel_cols.items():
+            for (rtype, role), col_idx in rel_cols.iteritems():
                 value = rowvalues[col_idx]
                 if value is None:
                     if role == 'subject':