mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-13 01:21:40 +08:00
* Replaced token tuple with token class
* Fixed PEP8 where I read code
This commit is contained in:
@@ -146,8 +146,13 @@ class NoErrorTokenizer(object):
|
||||
if self.is_fast_parser \
|
||||
and self.previous[0] in (tokenize.INDENT, tokenize.NL, None,
|
||||
tokenize.NEWLINE, tokenize.DEDENT) \
|
||||
and c[0] not in (tokenize.COMMENT, tokenize.INDENT,
|
||||
tokenize.NL, tokenize.NEWLINE, tokenize.DEDENT):
|
||||
and c[0] not in (
|
||||
tokenize.COMMENT,
|
||||
tokenize.INDENT,
|
||||
tokenize.NL,
|
||||
tokenize.NEWLINE,
|
||||
tokenize.DEDENT
|
||||
):
|
||||
# print c, tokenize.tok_name[c[0]]
|
||||
|
||||
tok = c[1]
|
||||
|
||||
Reference in New Issue
Block a user