1
0
forked from VimPlug/jedi

removed parentheses counting from generate_tokens

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

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