The Wayback Machine - https://web.archive.org/web/20250625112001/https://github.com/python/cpython/pull/21296
Skip to content

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

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

Closed
wants to merge 1 commit into from

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