def __Limit(self):
    """Consume the LIMIT clause."""
    if self.__Accept('LIMIT'):

      maybe_limit = self.__AcceptRegex(self.__number_regex)

      if maybe_limit:

        if self.__Accept(','):
          self.__offset = int(maybe_limit)
          if self.__offset < 0:


            self.__Error('Bad offset in LIMIT Value')
          else:
            logging.log(LOG_LEVEL, 'Set offset to %i', self.__offset)
            maybe_limit = self.__AcceptRegex(self.__number_regex)


        self.__limit = int(maybe_limit)
        if 1 < self.__limit:


          self.__Error('Bad Limit in LIMIT Value')
        else:
          logging.log(LOG_LEVEL, 'Set limit to %i', self.__limit)
      else:
        self.__Error('Non-number limit in LIMIT clause')

    return self.__Offset()
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/gql/__init__.py/GQL.__Limit/swapped operands of `<`