You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see in the last 3 lines, "no changes" but also "need to be modified". Seems like this is a longstanding issue with 2to3.
I think the "need to be modified" is translated into the rt.files attribute that powers the --enforce flag.
I haven't dug into fissix yet, but maybe it represents a suitable layer at which to undo the damage? If a path says "no changes", remove it from the files list? Just an idea!
Details
OS: Ubuntu 18.04
Python version: 3.6.9
fissix version: 20.8.0
Can you repro on master? yes
Can you repro in a clean virtualenv? yes
The text was updated successfully, but these errors were encountered:
mahmoud
changed the title
StdoutRefactoringTool sets files attribute even when no files are modified
StdoutRefactoringTool sets files attribute even when no files need to be modified
Oct 8, 2020
mahmoud
pushed a commit
to mahmoud/fissix
that referenced
this issue
Oct 8, 2020
Description
Hi there! While trying to enforce 2/3 compatibility on a large codebase, I ran across an issue with modernize's
--enforce
flag:As you can see in the last 3 lines, "no changes" but also "need to be modified". Seems like this is a longstanding issue with 2to3.
I think the "need to be modified" is translated into the
rt.files
attribute that powers the--enforce
flag.I haven't dug into fissix yet, but maybe it represents a suitable layer at which to undo the damage? If a path says "no changes", remove it from the files list? Just an idea!
Details
The text was updated successfully, but these errors were encountered: