it seems like all relevant used_vars usages have been removed
This commit is contained in:
1 parent
a355c8c54c
commit
15c9ed573d
2 files changed
+11
-8
No files matched your search
+5
-4
@@ -657,10 +657,11 @@ class Parser(object):
|
||||
stmt, tok = self._parse_statement(self._current)
|
||||
if stmt:
|
||||
self._scope.add_statement(stmt)
|
||||
for name in stmt.used_vars:
|
||||
# add the global to the top, because there it is
|
||||
# important.
|
||||
self.module.add_global(name)
|
||||
for t in stmt.token_list:
|
||||
if isinstance(t, pr.Name):
|
||||
# add the global to the top, because there it is
|
||||
# important.
|
||||
self.module.add_global(t)
|
||||
# decorator
|
||||
elif tok == '@':
|
||||
stmt, tok = self._parse_statement()
|
||||
|
||||
Reference in new issue
Block a user