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

Fallback in case of TokenError during vmprofshow #119

Merged
merged 1 commit into from
Feb 23, 2017

Conversation

jogo
Copy link
Contributor

@jogo jogo commented Feb 22, 2017

multiline dictionary comprehensions cause inspect.getblock to fail, so
in case of a TokenError, guess the last line based on max(linenos).

fixes #118

multiline dictionary comprehensions cause inspect.getblock to fail, so
in case of a TokenError, guess the last line based on max(linenos).
@planrich
Copy link
Contributor

Thanks, I have added a longer comment explaining some details and referring to the issue #118

@jogo jogo deleted the dictcomp branch February 23, 2017 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vmprofshow breaks on multiline dictionary comprehensions
2 participants