def fetchone(self, delete_flag=False):
        try:
            result = self.last_select_command.results.next()

            if isinstance(result, (int, long)):
                return (result,)

            query = self.last_select_command.query

            row = []

            # Prepend extra select values to the resulting row
            for col, select in query.extra_selects:
                row.append(result.get(col))

            for col in self.last_select_command.query.init_list:
                row.append(result.get(col))

            self.returned_ids.append(result.key().id_or_name())
            return row
        except __HOLE__:
            return None
dataset/ETHPy150Open potatolondon/djangae/djangae/db/backends/appengine/base.py/Cursor.fetchone