summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--compat.py4
2 files changed, 4 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 857ecc8..486116b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
diff --git a/compat.py b/compat.py
index e64d2d2..f032252 100644
--- a/compat.py
+++ b/compat.py
@@ -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):