[entropy.db.mysql] fix __iter__ support, iter(self._cur) MUST returned
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user