[Erp5-report] r32719 nicolas.dumazet - /erp5/trunk/products/ERP5Type/XMLMatrix.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Feb 18 09:01:27 CET 2010


Author: nicolas.dumazet
Date: Thu Feb 18 09:01:26 2010
New Revision: 32719

URL: http://svn.erp5.org?rev=32719&view=rev
Log:
sorted() looks more appropriate

Modified:
    erp5/trunk/products/ERP5Type/XMLMatrix.py

Modified: erp5/trunk/products/ERP5Type/XMLMatrix.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/XMLMatrix.py?rev=32719&r1=32718&r2=32719&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/XMLMatrix.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/XMLMatrix.py [utf8] Thu Feb 18 09:01:26 2010
@@ -478,8 +478,7 @@
 
       result = []
       for value in cell_range.itervalues():
-        result_items = value.items()
-        result_items.sort(key=lamba x:x[1])
+        result_items = sorted(value.iteritems(), key=lambda x:x[1])
         result_items = [x[0] for x in result_items]
         result += [result_items]
       return result




More information about the Erp5-report mailing list