1
0
forked from VimPlug/jedi

protect token_list -> _token_list

This commit is contained in:
Dave Halter
2014-03-04 12:32:34 +01:00
parent 7de4b14461
commit 65ce609a3c
5 changed files with 20 additions and 36 deletions

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.