X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c90cf42d7ce0e529af677e082ab651180339084b..fcaaf955bed7bb54a50fc22b0e216ed51a587a6b:/blib2to3/pgen2/driver.py?ds=inline diff --git a/blib2to3/pgen2/driver.py b/blib2to3/pgen2/driver.py index eabc72b..cc7b415 100644 --- a/blib2to3/pgen2/driver.py +++ b/blib2to3/pgen2/driver.py @@ -69,7 +69,7 @@ class Driver(object): if debug: self.logger.debug("%s %r (prefix=%r)", token.tok_name[type], value, prefix) - if type == token.DEDENT: + if type in {token.INDENT, token.DEDENT}: _prefix = prefix prefix = "" if p.addtoken(type, value, (prefix, start)): @@ -77,7 +77,7 @@ class Driver(object): self.logger.debug("Stop.") break prefix = "" - if type == token.DEDENT: + if type in {token.INDENT, token.DEDENT}: prefix = _prefix lineno, column = end if value.endswith("\n"):