forked from VimPlug/jedi
global working.
This commit is contained in:
@@ -113,7 +113,7 @@ class Parser(object):
|
||||
# We need to check raw_node always, because the same node can be
|
||||
# returned by convert multiple times.
|
||||
if type == pytree.python_symbols.global_stmt:
|
||||
self.global_names += new_node.names()
|
||||
self.global_names += new_node.get_defined_names()
|
||||
elif isinstance(new_node, (pr.ClassOrFunc, pr.Module)) \
|
||||
and type in (pytree.python_symbols.funcdef,
|
||||
pytree.python_symbols.classdef,
|
||||
|
||||
@@ -1152,7 +1152,7 @@ class KeywordStatement(Simple):
|
||||
|
||||
|
||||
class GlobalStmt(Simple):
|
||||
def names(self):
|
||||
def get_defined_names(self):
|
||||
return self.children[1::2]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user