move fetchiter from webapp to dedup.utils
[~helmut/debian-dedup.git] / dedup / utils.py
1 def fetchiter(cursor):
2     rows = cursor.fetchmany()
3     while rows:
4         for row in rows:
5             yield row
6         rows = cursor.fetchmany()
7