Use iteritems() instead of items() because an iterator uses less memory.
authorZac Medico <zmedico@gentoo.org>
Sun, 14 May 2006 12:08:23 +0000 (12:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 14 May 2006 12:08:23 +0000 (12:08 -0000)
svn path=/main/trunk/; revision=3350

pym/cache/flat_hash.py

index dfa7ad0c7ee3f59638496c8998b76a688081e84f..3a49a05de79f5afcb68a488926b811dc773509a2 100644 (file)
@@ -80,7 +80,7 @@ class database(fs_template.FsBased):
                        else:
                                raise cache_errors.CacheCorruption(cpv, e)
 
-               for k, v in values.items():
+               for k, v in values.iteritems():
                        if k != "_mtime_" and (k == "_eclasses_" or k in self._known_keys):
                                myf.write("%s=%s\n" % (k, v))