Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line numbers are wrong on Python 3.7 #98

Closed
pawamoy opened this issue Aug 18, 2022 · 1 comment
Closed

Line numbers are wrong on Python 3.7 #98

pawamoy opened this issue Aug 18, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@pawamoy
Copy link
Member

pawamoy commented Aug 18, 2022

My tokenize code seems to be incorrect.

@pawamoy pawamoy added the bug Something isn't working label Aug 18, 2022
@pawamoy
Copy link
Member Author

pawamoy commented Sep 22, 2022

In fact the tokenize code is correct. It seems Python 3.7 gives the ending line numbers of strings in the lineno attribute, rather than the starting one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant