@staticmethod
  def _bytes_to_cursor_pb(cursor):

    try:
      cursor_pb = datastore_pb.CompiledCursor(cursor)
    except (__HOLE__, TypeError), e:
      raise datastore_errors.BadValueError(
          'Invalid cursor (%r). Details: %s' % (cursor, e))
    except Exception, e:






      if e.__class__.__name__ == 'ProtocolBufferDecodeError':
        raise datastore_errors.BadValueError(
            'Invalid cursor %s. Details: %s' % (cursor, e))
      else:
        raise
    return cursor_pb
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/datastore/datastore_query.py/Cursor._bytes_to_cursor_pb