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/sql_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym/cache/sql_template.py') 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: -- cgit v1.2.3-1-g7c22