From 90cb8d2429ff725fd1011af5df244bd0d8d30939 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 14 May 2006 12:08:23 +0000 Subject: [PATCH] Use iteritems() instead of items() because an iterator uses less memory. svn path=/main/trunk/; revision=3350 --- pym/cache/flat_hash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.26.2