mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix pyflakes issues.
This commit is contained in:
@@ -609,9 +609,9 @@ class PythonDomain(Domain):
|
||||
else:
|
||||
# "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]
|
||||
else:
|
||||
# NOTE: searching for exact match, object type is not considered
|
||||
if name in objects:
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
:license: BSD, see LICENSE for details.
|
||||
"""
|
||||
|
||||
import re
|
||||
import sys
|
||||
from os import path
|
||||
from cStringIO import StringIO
|
||||
|
||||
|
||||
Reference in New Issue
Block a user