def fetchone(self):
    """Fetches the next row of a query result set.

    Returns:
      A sequence, or None when no more data is available.

    Raises:
      InternalError: The cursor has been closed, or no statement has been
        executed yet.
    """
    self._CheckOpen()
    self._CheckExecuted('fetchone() called before execute')
    if not self._rows and self._more_rows:
      self._FetchMoreRows()
    try:
      return self._rows.popleft()
    except __HOLE__:
      return None
dataset/ETHPy150Open AppScale/appscale/AppServer/google/storage/speckle/python/api/rdbms.py/Cursor.fetchone