Commits

Anonymous committed ee386d7

- Fixed bug: valdocs was used before it was defined

Comments (0)

Files changed (1)

epydoc/src/epydoc/docbuilder.py

 
     # Set overrides pointers
     log.start_progress('Checking for overridden methods')
+    valdocs = sorted(docindex.reachable_valdocs(
+        imports=False, submodules=False, packages=False, subclasses=False))
     for i, val_doc in enumerate(valdocs):
         if isinstance(val_doc, ClassDoc):
             percent = float(i)/len(valdocs)
     
     # Parse the docstrings for each object.
     log.start_progress('Parsing docstrings')
-    valdocs = sorted(docindex.reachable_valdocs(
-        imports=False, submodules=False, packages=False, subclasses=False))
     suppress_warnings = set(valdocs).difference(
         docindex.reachable_valdocs(
             imports=False, submodules=False, packages=False, subclasses=False,