details: http://hg.sympy.org/sympy/rev/12c291124f86 changeset: 1827:12c291124f86 user: Andy R. Terrel <[EMAIL PROTECTED]> date: Sun Oct 19 21:28:48 2008 +0200 description: Removing if else syntax only available in python >= 2.5
diffs (12 lines): diff -r 6128bd120595 -r 12c291124f86 sympy/functions/elementary/piecewise.py --- a/sympy/functions/elementary/piecewise.py Sun Oct 19 21:28:48 2008 +0200 +++ b/sympy/functions/elementary/piecewise.py Sun Oct 19 21:28:48 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 -~----------~----~----~----~------~----~------~--~---