2to3 inscrutable output

R

rurpy

What is this output from 2to3 supposed to mean?
$ cat mysub.py
isinstance (3, (int,float))
$ 2to3 -f isinstance mysub.py
RefactoringTool: No changes to mysub.py
RefactoringTool: Files that need to be modified:
RefactoringTool: mysub.py
Why does mysub.py need to be modified, and how?
 
S

Steven D'Aprano

What is this output from 2to3 supposed to mean?
$ cat mysub.py
isinstance (3, (int,float))
$ 2to3 -f isinstance mysub.py
RefactoringTool: No changes to mysub.py
RefactoringTool: Files that need to be modified:
RefactoringTool: mysub.py

Why does mysub.py need to be modified, and how?

Bleh. Who came up with this user interface?

I call confusing output like this a UI bug. But after playing around with
various small files, it *seems* to me that the "Files that need to be
modified" actually means "Files that include something that a fixer cares
about, whether or not it gets modified" (in this case, isinstance).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
EmeliaBryc

Latest Threads

Top