autoflake icon indicating copy to clipboard operation
autoflake copied to clipboard

Add an option to not filter useless pass statements

Open qyearsley-zz opened this issue 8 years ago • 2 comments

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.

qyearsley-zz avatar May 09 '16 18:05 qyearsley-zz

I think this is related to #9.

myint avatar May 09 '16 19:05 myint

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.

qyearsley-zz avatar May 09 '16 19:05 qyearsley-zz