removed parentheses counting from generate_tokens

This commit is contained in:
Dave Halter committed 2014-02-20 18:45:22 +01:00
1 parent 7e651684ff
commit 3232ae5b0c
2 files changed
+6 -13

No files matched your search

+3 -2
View File
@@ -63,7 +63,6 @@ class Parser(object):
while s is not None:
s.end_pos = self.end_pos
s = s.parent
pass
# clean up unused decorators
for d in self._decorators:
@@ -157,7 +156,9 @@ class Parser(object):
brackets = True
token_type, tok = self.next()
if brackets and tok == '\n':
self.next()
token_type, tok = self.next()
if token_type == tokenize.INDENT:
continue # TODO REMOVE, after removing the indents.
i, token_type, tok = self._parse_dot_name(self._current)
if not i:
defunct = True