From e5145157dbdb9c2683d1ab8176641f19d2dc5d4e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 22 Jun 2007 02:50:33 +0000 Subject: Implement iterkeys on top of __iter__ instead of vice versa. Thanks to Brian Harring for the suggestion. (trunk r6918) svn path=/main/branches/2.1.2/; revision=6934 --- pym/cache/flat_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym/cache/flat_list.py') diff --git a/pym/cache/flat_list.py b/pym/cache/flat_list.py index 85efa4c02..a4ac29b4a 100644 --- a/pym/cache/flat_list.py +++ b/pym/cache/flat_list.py @@ -86,7 +86,7 @@ class database(fs_template.FsBased): return os.path.exists(os.path.join(self._base, cpv)) - def iterkeys(self): + def __iter__(self): """generator for walking the dir struct""" dirs = [self._base] len_base = len(self._base) -- cgit v1.2.3-1-g7c22