fix a little problem with import keyword autocompletion

This commit is contained in:
David Halter
2013-01-14 22:35:32 +01:00
parent 35e55fab25
commit f3f7eacae3
2 changed files with 1 additions and 2 deletions

View File

@@ -149,7 +149,6 @@ class Script(object):
r'(,|from)\s*$|import\s+$', completion_line):
completions += ((k, bs) for k
in keywords.get_keywords('import'))
u = None
if not path and not isinstance(u, parsing.Import):
# add keywords

View File

@@ -196,7 +196,7 @@ import datetime.
#? []
import datetime.date
#? 18 ['mod1', 'random', 'pkg', 'rename1', 'rename2']
#? 18 ['mod1', 'random', 'pkg', 'rename1', 'rename2', 'import']
from import_tree. import pkg
#? 18 ['pkg']