if report_stats:
print("Ok")
+ redirects = 0
for object_no in range(objects):
object = root_folder.linear[object_no]
if hasattr(object, "moved"):
report_redirect(object.href, object.moved)
del object.moved
+ redirects += 1
if report_stats:
print(objects, "objects passed")
+ print(redirects, "redirects")
if __name__ == '__main__':
if report_stats:
print("Ok")
+ changed_titles = no_titles = 0
for object_no in range(objects):
object = root_folder.linear[object_no]
unquoted_name = unquote_title(object.name)
if unquoted_name != unquoted_title:
report_title(object.href, unquoted_name, unquoted_title)
+ changed_titles += 1
else:
report_title(object.href, object.name, None)
+ no_titles += 1
if report_stats:
print(objects, "objects passed")
+ print(changed_titles, "changed titles")
+ print(no_titles, "no titles")
if __name__ == '__main__':