Commit 363fb3f3 authored by Chris Withers's avatar Chris Withers

if it's inefficient, don't do it unless it's used ;-)

parent 8afa66b1
...@@ -481,11 +481,10 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -481,11 +481,10 @@ class ZCatalog(Folder, Persistent, Implicit):
name = (name,) name = (name,)
paths = self._catalog.uids.keys() paths = self._catalog.uids.keys()
num_paths = len(paths) # inefficient
i = 0 i = 0
if pghandler: if pghandler:
pghandler.init('reindexing %s' % name, num_paths) pghandler.init('reindexing %s' % name, len(paths))
for p in paths: for p in paths:
i+=1 i+=1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment