Fix pyflakes issues.

This commit is contained in:
Georg Brandl
2011-09-22 15:34:26 +02:00
parent c8b57044cd
commit 6e81a0622a
2 changed files with 3 additions and 5 deletions

View File

@@ -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:

View File

@@ -9,8 +9,6 @@
:license: BSD, see LICENSE for details.
"""
import re
import sys
from os import path
from cStringIO import StringIO