summaryrefslogtreecommitdiffstats
path: root/pym/portage/cache/flat_hash.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-21 21:10:00 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-21 21:10:00 +0000
commit46224ed3874b469c38ea5e973b1e5faf5483b376 (patch)
treeeb5ad28a035fc9f9eb92da5cc8877141972e1634 /pym/portage/cache/flat_hash.py
parent50dc22b8f85c5b1b5911a200f0b74257ed962461 (diff)
downloadportage-46224ed3874b469c38ea5e973b1e5faf5483b376.tar.gz
portage-46224ed3874b469c38ea5e973b1e5faf5483b376.tar.bz2
portage-46224ed3874b469c38ea5e973b1e5faf5483b376.zip
Implement iterkeys on top of __iter__ instead of vice versa. Thanks to Brian Harring for the suggestion.
svn path=/main/trunk/; revision=6918
Diffstat (limited to 'pym/portage/cache/flat_hash.py')
-rw-r--r--pym/portage/cache/flat_hash.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/cache/flat_hash.py b/pym/portage/cache/flat_hash.py
index 05b900ea8..80b23fe4d 100644
--- a/pym/portage/cache/flat_hash.py
+++ b/pym/portage/cache/flat_hash.py
@@ -102,7 +102,7 @@ class database(fs_template.FsBased):
return os.path.exists(os.path.join(self.location, cpv))
- def iterkeys(self):
+ def __iter__(self):
"""generator for walking the dir struct"""
dirs = [self.location]
len_base = len(self.location)