def cursor(self): cursor = self.cnx.cursor((PyFormatCursor, EagerCursor)[self._eager]) self._active_cursors[cursor] = True cursor.cnx = self return IterableCursor(cursor, self.log)
def cursor(self): return IterableCursor(self.cnx.cursor(), self.log)
def cursor(self): return IterableCursor(MySQLUnicodeCursor(self.cnx), self.log)