amyreese / fissix

backport of lib2to3, with enhancements
Other
45 stars 22 forks source link

Fixed reporting some unchanged files as needing modification #19

Closed AWhetter closed 4 years ago

AWhetter commented 4 years ago

Description

This change prevents fixers from changing the tree unnecessarily, which results in no visible diff and the file still being reported as needing modifications (as described in bpo-41110).

This partially addresses an issue in python-modernize where a non-zero exit code is returned even when no changes to files need to be made: python-modernize/python-modernize#161

This exists as a pull request to cpython as well: https://github.com/python/cpython/pull/21296

amyreese commented 4 years ago

Cheers!