def make_order_specification(cls, order_string): """ Converts the given CQL sort expression to a order specification. """ try: return parse_order(order_string) except ParseException as err: raise ValueError('Expression parameters have errors. %s' % err)
def make_order_specification(cls, order_string): try: return parse_order(order_string) except ParseException, err: raise ValueError('Expression parameters have errors. %s' % err)