diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-22 02:50:33 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-22 02:50:33 +0000 |
commit | e5145157dbdb9c2683d1ab8176641f19d2dc5d4e (patch) | |
tree | bb858e72885b464b80e22ad228d158376c46307a /pym/cache/sql_template.py | |
parent | 817be01f9ea3e703a861e4ec8ade82683903232a (diff) | |
download | portage-e5145157dbdb9c2683d1ab8176641f19d2dc5d4e.tar.gz portage-e5145157dbdb9c2683d1ab8176641f19d2dc5d4e.tar.bz2 portage-e5145157dbdb9c2683d1ab8176641f19d2dc5d4e.zip |
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
Diffstat (limited to 'pym/cache/sql_template.py')
-rw-r--r-- | pym/cache/sql_template.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/cache/sql_template.py b/pym/cache/sql_template.py index e635616e9..77f854054 100644 --- a/pym/cache/sql_template.py +++ b/pym/cache/sql_template.py @@ -209,7 +209,7 @@ class SQLDatabase(template.database): return self.con.rowcount > 0 - def iterkeys(self): + def __iter__(self): if not self.autocommits: try: self.commit() except self._BaseError, e: |