[entropy.db.mysql] fix __iter__ support, iter(self._cur) MUST returned

This commit is contained in:
Fabio Erculiani
2012-08-11 18:15:33 +02:00
parent 7a950cb4b9
commit 74f7b4d730

View File

@@ -124,10 +124,7 @@ class MySQLCursorWrapper:
return self
def __iter__(self):
return self
def next(self):
return self._proxy_call(self._cur.next, [], {})
return iter(self._cur)
@property
def lastrowid(self):