def _no_clauseelement_condition(self, meth):
    if (not self._enable_assertions):
        return
    if self._order_by:
        raise sa_exc.InvalidRequestError(('Query.%s() being called on a Query with existing criterion. ' % meth))
    self._no_criterion_condition(meth)
def _no_clauseelement_condition(self, meth):
    if (not self._enable_assertions):
        return
    if self._order_by:
        raise sa_exc.InvalidRequestError(('Query.%s() being called on a Query with existing criterion. ' % meth))
    self._no_criterion_condition(meth)