summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-05-14 12:08:23 +0000
committerZac Medico <zmedico@gentoo.org>2006-05-14 12:08:23 +0000
commit90cb8d2429ff725fd1011af5df244bd0d8d30939 (patch)
tree3d9e2944f46751501f781927d8e093b61e7156a7
parent37440ac5fae7e5c4ceaef00e99e0f88bd8d40ee3 (diff)
downloadportage-90cb8d2429ff725fd1011af5df244bd0d8d30939.tar.gz
portage-90cb8d2429ff725fd1011af5df244bd0d8d30939.tar.bz2
portage-90cb8d2429ff725fd1011af5df244bd0d8d30939.zip
Use iteritems() instead of items() because an iterator uses less memory.
svn path=/main/trunk/; revision=3350
-rw-r--r--pym/cache/flat_hash.py2
1 files changed, 1 insertions, 1 deletions
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))