changeset 1370:25ad5f5c6e3d

py2.4 fix, sorted
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Fri, 18 Aug 2006 14:34:26 +0200
parents 0a291dcb0555
children 640e007672ed
files MoinMoin/macro/AdvancedSearch.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/AdvancedSearch.py	Fri Aug 18 14:25:08 2006 +0200
+++ b/MoinMoin/macro/AdvancedSearch.py	Fri Aug 18 14:34:26 2006 +0200
@@ -15,6 +15,14 @@
 
 Dependencies = ['pages']
 
+try:
+    sorted
+except NameError:
+    def sorted(l, *args, **kw):
+        l = l[:]
+        l.sort(*args, *kw)
+        return l
+
 def advanced_ui(macro):
     _ = macro._
     f = macro.formatter