From d364bd1bf11056e30c17309fb7ff951f30dc8003 Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Thu, 18 Feb 2010 08:01:26 +0000
Subject: [PATCH] sorted() looks more appropriate

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32719 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/XMLMatrix.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/product/ERP5Type/XMLMatrix.py b/product/ERP5Type/XMLMatrix.py
index 4f6a981d0b..1bdf463851 100644
--- a/product/ERP5Type/XMLMatrix.py
+++ b/product/ERP5Type/XMLMatrix.py
@@ -478,8 +478,7 @@ class XMLMatrix(Folder):
 
       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
-- 
2.30.9