# HG changeset patch # User Sylvain Thénault # Date 1302848286 -7200 # Node ID 23d9c1f89c964466cb2ccc7cdd0371e88349a3da # Parent 7a58581d842c17fe0de519b9ab386869c4c476fd [dataimport] actually commit every desired number... diff -r 7a58581d842c -r 23d9c1f89c96 dataimport.py --- a/dataimport.py Thu Apr 14 14:18:46 2011 +0200 +++ b/dataimport.py Fri Apr 15 08:18:06 2011 +0200 @@ -133,7 +133,7 @@ """ for idx, item in enumerate(iterable): yield item - if idx % number: + if not idx % number: func() func()