protect token_list -> _token_list

This commit is contained in:
Dave Halter committed 2014-03-04 12:43:37 +01:00
1 parent 7de4b14461
commit 65ce609a3c
5 files changed
+20 -36

No files matched your search

+1 -1
View File
@@ -568,7 +568,7 @@ class Parser(object):
stmt, tok = self._parse_statement(self._gen.current)
if stmt:
self._scope.add_statement(stmt)
for t in stmt.token_list:
for t in stmt._token_list:
if isinstance(t, pr.Name):
# add the global to the top, because there it is
# important.