changeset 3826:3cbb709f5c5d

wikiutil: fix sort() usage in UnitArgument
author Johannes Berg <johannes AT sipsolutions DOT net>
date Fri, 11 Jul 2008 12:56:52 +0200
parents df0218925ef8
children a53e20c3ebab
files MoinMoin/wikiutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Thu Jul 03 20:49:52 2008 +0200
+++ b/MoinMoin/wikiutil.py	Fri Jul 11 12:56:52 2008 +0200
@@ -1752,7 +1752,7 @@
         """
         IEFArgument.__init__(self)
         self._units = list(units)
-        self._units.sort(cmp=lambda x, y: len(y) - len(x))
+        self._units.sort(lambda x, y: len(y) - len(x))
         self._type = argtype
         self._defaultunit = defaultunit
         assert defaultunit is None or defaultunit in units