def _no_limit_offset(self, meth):
    if (not self._enable_assertions):
        return
    if ((self._limit is not None) or (self._offset is not None)):
        raise sa_exc.InvalidRequestError(('Query.%s() being called on a Query which already has LIMIT or OFFSET applied. To modify the row-limited results of a  Query, call from_self() first.  Otherwise, call %s() before limit() or offset() are applied.' % (meth, meth)))
def _no_limit_offset(self, meth):
    if (not self._enable_assertions):
        return
    if ((self._limit is not None) or (self._offset is not None)):
        raise sa_exc.InvalidRequestError(('Query.%s() being called on a Query which already has LIMIT or OFFSET applied. To modify the row-limited results of a  Query, call from_self() first.  Otherwise, call %s() before limit() or offset() are applied.' % (meth, meth)))