Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Closed
AWhetter wants to merge 1 commit into
python:mainpython/cpython:mainfrom
AWhetter:fix-issue-41110AWhetter/cpython:fix-issue-41110Copy head branch name to clipboard
Closed

bpo-41110: Fixed lib2to3 reporting some unchanged files as needing modification#21296
AWhetter wants to merge 1 commit into
python:mainpython/cpython:mainfrom
AWhetter:fix-issue-41110AWhetter/cpython:fix-issue-41110Copy head branch name to clipboard

Conversation

@AWhetter

@AWhetter AWhetter commented Jul 3, 2020

Copy link
Copy Markdown
Contributor

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

iritkatriel commented Oct 20, 2021

Copy link
Copy Markdown
Member

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.