modernize
modernize copied to clipboard
Add fix_nonzero fixer to rename and alias `__nonzero__` to `__bool__`.
@graingert saw you were recently added as a maintainer to this project, any thoughts on this PR? Thanks in advance.
Imho this would need support in six with a @six.python_2_bool_compatible decorator. Otherwise it should be added to fissix without the backwards compatible use of six