changeset 2807:038db199ca6b

1.6 converter: better sorting of rename map
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 08 Sep 2007 21:23:35 +0200
parents f86a1c914069
children a276a0e0f0c8
files MoinMoin/script/migration/_conv160.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/migration/_conv160.py	Sat Sep 08 21:05:23 2007 +0200
+++ b/MoinMoin/script/migration/_conv160.py	Sat Sep 08 21:23:35 2007 +0200
@@ -453,7 +453,7 @@
 
     def save_list(self, fname, what):
         what_sorted = what.keys()
-        what_sorted.sort()
+        what_sorted.sort(cmp=lambda x, y: cmp(x[1:], y[1:]))
         f = codecs.open(fname, 'w', 'utf-8')
         for k in what_sorted:
             rtype, pn, fn = (k + (None, ))[:3]