Skip to content

bpo-41110: Fixed lib2to3 reporting some unchanged files as needing modification#21296

Closed
AWhetter wants to merge 1 commit intopython:mainfrom
AWhetter:fix-issue-41110
Closed

bpo-41110: Fixed lib2to3 reporting some unchanged files as needing modification#21296
AWhetter wants to merge 1 commit intopython:mainfrom
AWhetter:fix-issue-41110

Conversation

@AWhetter
Copy link
Contributor

@AWhetter AWhetter commented Jul 3, 2020

This changes prevents lib2to3 fixers from changing the tree unnecessarily, which results in no visible diff and the file still being reported as needing modifications.

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: PyCQA/modernize#161

Given that lib2to3 is on its way out, I don't know if this should be fixed in 3.8 and 3.9 only?

https://bugs.python.org/issue41110

@iritkatriel
Copy link
Member

iritkatriel commented Oct 20, 2021

Closed under bpo-45544.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants