Revision: 2938
Author: pekka.klarck
Date: Mon Apr 12 06:40:39 2010
Log: can haz nicer sort in 2.5 versions
http://code.google.com/p/robotframework/source/detail?r=2938

Modified:
 /trunk/src/robot/parsing/model.py

=======================================
--- /trunk/src/robot/parsing/model.py   Mon Apr 12 06:38:30 2010
+++ /trunk/src/robot/parsing/model.py   Mon Apr 12 06:40:39 2010
@@ -155,8 +155,7 @@
             # http://bugs.jython.org/issue1593
             from java.lang import String
             names = [ utils.unic(String(n)) for n in names ]
-        names.sort(lambda x,y: cmp(x.lower(), y.lower()))
-        return names
+        return sorted(names, key=str.lower)

     def _get_rawdata(self, path):
         if self.initfile is None:


--
To unsubscribe, reply using "remove me" as the subject.

Reply via email to