1. JacobSingh
  2. sphinx


Georg Brandl  committed dd371c9

Fix pyflakes issues.

  • Participants
  • Parent commits 2fb001f
  • Branches default

Comments (0)

Files changed (2)

File sphinx/domains/python.py

View file
                     # "fuzzy" searching mode
                     searchname = '.' + name
-                    matches = [(name, objects[name]) for name in objects
-                               if name.endswith(searchname)
-                               and objects[name][1] in objtypes]
+                    matches = [(oname, objects[oname]) for oname in objects
+                               if oname.endswith(searchname)
+                               and objects[oname][1] in objtypes]
             # NOTE: searching for exact match, object type is not considered
             if name in objects:

File sphinx/pycode/__init__.py

View file
     :license: BSD, see LICENSE for details.
-import re
-import sys
 from os import path
 from cStringIO import StringIO