Fixed the creation of an AllError when there is an unexpected token #143

Merged
merged 2 commits into from Oct 12, 2015

Projects

None yet

2 participants

@Nurdok
Member
Nurdok commented Oct 10, 2015

as per #142

@Nurdok Nurdok merged commit 8248cfb into PyCQA:master Oct 12, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@Nurdok Nurdok deleted the Nurdok:all-token-error branch Oct 12, 2015
@jmullan

Argh, this was my change that introduced the bug -- I had broken out some other changes and forgot to bring over import token. It IS nicer to know what kind of token the unexpected token was, though.

Owner

It does print the token kind. self.current.kind is of type TokenKind which has a special __repr__ for printing the tok_name, so there's no need to explicitly do that here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment