1
0
forked from VimPlug/jedi

Few import issues.

This commit is contained in:
Dave Halter
2014-09-22 23:45:48 +02:00
parent 1d71b25109
commit 5efa467449
2 changed files with 5 additions and 5 deletions

View File

@@ -484,8 +484,8 @@ class Parser(object):
if len(from_names) == 1 and str(from_names[0]) == 'import' and relative_count:
self._gen.push_last_back()
tok_str = 'import'
names = []
if not names and not relative_count or tok_str != "import":
from_names = []
if not from_names and not relative_count or tok_str != "import":
debug.warning("from: syntax error@%s", tok.start_pos[0])
defunct = True
if tok_str != 'import':