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

Add an option to not filter useless pass statements #10

Closed
qyearsley-zz opened this issue May 9, 2016 · 2 comments · Fixed by #143
Closed

Add an option to not filter useless pass statements #10

qyearsley-zz opened this issue May 9, 2016 · 2 comments · Fixed by #143

Comments

@qyearsley-zz
Copy link

In fix_code, filter_useless_pass is always called.

But, it would be nice to be able to remove unused import statements without modifying pass statements, and to control removal of pass statements separately.

@myint
Copy link
Member

myint commented May 9, 2016

I think this is related to #9.

@qyearsley-zz
Copy link
Author

Ah, that's right! Yep, if that pull request can be modified to add pass statements where they're required when imports are removed, and also keep useless pass statements elsewhere, that would be what I had in mind with this issue.

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 a pull request may close this issue.

2 participants