--- 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()