1
0
forked from VimPlug/jedi

statements have no get_defined_names function

This commit is contained in:
David Halter
2012-10-14 12:33:58 +02:00
parent 3a6d9ba955
commit 80ec5e0e9d

View File

@@ -1169,7 +1169,7 @@ class PyFuzzyParser(object):
if self.user_stmt is not None: if self.user_stmt is not None:
# if there is already a user position (another import, because # if there is already a user position (another import, because
# imports are splitted) the names are checked. # imports are splitted) the names are checked.
for n in simple.get_defined_names(): for n in simple.get_set_vars():
if n.start_pos < self.user_position <= n.end_pos: if n.start_pos < self.user_position <= n.end_pos:
self.user_stmt = simple self.user_stmt = simple
else: else: