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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Feb 18 10:04:18 CET 2010


Author: nicolas.dumazet
Date: Thu Feb 18 10:04:15 2010
New Revision: 32731

URL: http://svn.erp5.org?rev=32731&view=rev
Log:
use enumerate

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=32731&r1=32730&r2=32731&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/XMLMatrix.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/XMLMatrix.py [utf8] Thu Feb 18 10:04:15 2010
@@ -385,8 +385,8 @@
         index_list = []
         for index in cell_id[len(base_id)+1:].split('_'):
           index_list.append(int(index))
-        for i in range(len(index_list)):
-          if index_list[i] >= size_list[i]:
+        for i, index in enumerate(index_list):
+          if index >= size_list[i]:
             removed_cell_id_list.append(cell_id)
             break
 




More information about the Erp5-report mailing list