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

Detect __import__ debugger statements #11

Merged
merged 1 commit into from
Feb 11, 2018
Merged

Conversation

sliverc
Copy link
Contributor

@sliverc sliverc commented Jan 4, 2018

Flake8 Debugger stumbles upon following statement with an exception:

__import__('ipdb').set_trace()

I first encountered this issue with an update of popular vim-snippets. Once this statement is in the code whole flake8 process won't run as it stops with an exception.

This PR fixes the issue that no exception is raised and the debugger statement is correctly detected.

Copy link
Owner

@JBKahn JBKahn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch I'll bundle with in with the other fix

@JBKahn JBKahn merged commit d1b5429 into JBKahn:master Feb 11, 2018
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.

2 participants