[Greater-commits] r3610 - trunk/packaging
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Jul 18 11:40:19 CEST 2011
Author: aheinecke
Date: 2011-07-18 11:40:18 +0200 (Mon, 18 Jul 2011)
New Revision: 3610
Modified:
trunk/packaging/makeinstaller.py
Log:
Use keyword argument for sort
Modified: trunk/packaging/makeinstaller.py
===================================================================
--- trunk/packaging/makeinstaller.py 2011-07-18 09:37:30 UTC (rev 3609)
+++ trunk/packaging/makeinstaller.py 2011-07-18 09:40:18 UTC (rev 3610)
@@ -81,7 +81,7 @@
else:
unptr.write('Delete "%s"\r\n' % \
fname.replace(absdir, "$INSTDIR"))
- dirlist.sort(lambda x: len(x))
+ dirlist.sort(key=lambda x: len(x))
dirlist.reverse()
for dir in dirlist:
unptr.write('RMDir "%s"\r\n' % dir)
More information about the Greater-commits
mailing list