1
0
forked from VimPlug/jedi

globals are more or less ready.

This commit is contained in:
Dave Halter
2014-10-17 18:48:07 +02:00
parent f08811fba7
commit 74d4fcf4e7
4 changed files with 14 additions and 12 deletions

View File

@@ -130,6 +130,7 @@ class Evaluator(object):
if isinstance(stmt, FakeStatement):
return stmt.children # Already contains the results.
print('X', stmt.get_rhs())
result = self.eval_element(stmt.get_rhs())
ass_details = stmt.assignment_details

View File

@@ -179,7 +179,7 @@ class NameFinder(object):
defined.
"""
if isinstance(scope, pr.Flow) \
or isinstance(scope, pr.KeywordStatement) and scope.name == 'global':
or isinstance(scope, pr.GlobalStmt):
if isinstance(name_list_scope, er.Class):
name_list_scope = name_list_scope.base