statements have no get_defined_names function
This commit is contained in:
1 parent
3a6d9ba955
commit
80ec5e0e9d
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||||
|
|||||||
Reference in new issue
Block a user