1
0
forked from VimPlug/jedi

start to get rid of the get_set_vars/get_defined_names distinction

This commit is contained in:
Dave Halter
2014-04-14 12:28:14 +02:00
parent 4c53a64ca0
commit 237af765b7
3 changed files with 7 additions and 14 deletions

View File

@@ -167,8 +167,8 @@ class ImportPath(pr.Base):
# This is not an existing Import statement. Therefore, set position to
# 0 (0 is not a valid line number).
zero = (0, 0)
names = ((name_part.string, name_part.start_pos)
for name_part in i.namespace.names[1:])
names = [(name_part.string, name_part.start_pos)
for name_part in i.namespace.names[1:]]
n = pr.Name(i._sub_module, names, zero, zero, self.import_stmt)
new = pr.Import(i._sub_module, zero, zero, n)
new.parent = parent