summaryrefslogtreecommitdiffstats
path: root/bin/egencache
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-09-22 20:03:10 +0000
committerZac Medico <zmedico@gentoo.org>2009-09-22 20:03:10 +0000
commit38e5d658da8cd06b72e4e802f9e831a2143307d1 (patch)
treead7bf8ff4ccdd8ab7584e725f17abffb3874b87f /bin/egencache
parent26736fa28cf9a37f4ea0cb9ee73f4b0c6a240d28 (diff)
downloadportage-38e5d658da8cd06b72e4e802f9e831a2143307d1.tar.gz
portage-38e5d658da8cd06b72e4e802f9e831a2143307d1.tar.bz2
portage-38e5d658da8cd06b72e4e802f9e831a2143307d1.zip
Replace doct.keys() usage with __iter__(), since it behaves identically in
both python 2.x and 3.x. svn path=/main/trunk/; revision=14379
Diffstat (limited to 'bin/egencache')
-rwxr-xr-xbin/egencache4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/egencache b/bin/egencache
index b160189a3..69a41fde6 100755
--- a/bin/egencache
+++ b/bin/egencache
@@ -204,7 +204,7 @@ class GenCache(object):
dead_nodes = set()
if self._global_cleanse:
try:
- for cpv in trg_cache.keys():
+ for cpv in trg_cache:
cp = cpv_getkey(cpv)
if cp is None:
self.returncode |= 1
@@ -224,7 +224,7 @@ class GenCache(object):
else:
cp_set = self._cp_set
try:
- for cpv in trg_cache.keys():
+ for cpv in trg_cache:
cp = cpv_getkey(cpv)
if cp is None:
self.returncode |= 1