diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | compat.py | 4 |
2 files changed, 4 insertions, 3 deletions
@@ -2,7 +2,8 @@ ChangeLog for logilab.common ============================ -- - * testlib: improved test collections + * testlib: improved test collections + * compat: added cmp argument to sorted 2006-05-19 -- 0.16.0 * testlib: @@ -170,9 +170,9 @@ try: sorted = sorted reversed = reversed except NameError: - def sorted(l): + def sorted(l, cmp=None): l2 = list(l) - l2.sort() + l2.sort(cmp) return l2 def reversed(l): |