From: Zac Medico Date: Sun, 14 May 2006 12:08:23 +0000 (-0000) Subject: Use iteritems() instead of items() because an iterator uses less memory. X-Git-Tag: v2.1_rc2~33 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=90cb8d2429ff725fd1011af5df244bd0d8d30939;p=portage.git Use iteritems() instead of items() because an iterator uses less memory. svn path=/main/trunk/; revision=3350 --- diff --git a/pym/cache/flat_hash.py b/pym/cache/flat_hash.py index dfa7ad0c7..3a49a05de 100644 --- a/pym/cache/flat_hash.py +++ b/pym/cache/flat_hash.py @@ -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))