Fix bugs in some modules caused by using enumerate instead of conventional for-loop syntax

svn: r12795
This commit is contained in:
Gerald Britton
2009-07-14 14:16:03 +00:00
parent b75f97ef01
commit 302a4358fd
5 changed files with 30 additions and 13 deletions

View File

@@ -100,7 +100,8 @@ class SummaryReport(Report):
self.doc.end_paragraph()
person_list = self.__db.iter_person_handles()
for num_people, person_handle in enumerate(person_list):
num_people = 0
for person_handle in person_list:
person = self.__db.get_person_from_handle(person_handle)
if not person:
continue