details: http://hg.sympy.org/sympy/rev/2bd730295d9f changeset: 1838:2bd730295d9f user: Andy R. Terrel <[EMAIL PROTECTED]> date: Sun Oct 19 20:26:03 2008 +0200 description: Removing if else syntax only available in python >= 2.5
diffs (12 lines): diff -r 52a04dc2f1e3 -r 2bd730295d9f sympy/functions/elementary/piecewise.py --- a/sympy/functions/elementary/piecewise.py Fri Oct 17 08:47:04 2008 +0200 +++ b/sympy/functions/elementary/piecewise.py Sun Oct 19 20:26:03 2008 +0200 @@ -149,7 +149,7 @@ curr[1] = int_expr[n][0] if self.__eval_cond(curr[0] < curr[1]): int_expr.append(curr+[expr]) - int_expr.sort(lambda x,y:1 if x[0] > y[0] else -1) + int_expr.sort(key=lambda x:x[0]) # Add holes to list of intervals if there is a default value, # otherwise raise a ValueError. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy-commits" group. To post to this group, send email to sympy-commits@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sympy-commits?hl=en -~----------~----~----~----~------~----~------~--~---