How to use 2to3 tool in windows? How to use 2to3 tool in windows? python python

How to use 2to3 tool in windows?


You have to use the -w flag to actually write the changes:

python C:\Python32\Tools\scripts\2to3.py -w neo4j.py

See the 2to3.py documentation.


As an addition to the accepted answer,

Copy this line to C:\python32\Scripts\2to3.bat:

@python %~dp0..\tools\scripts\2to3.py %*

After that you'll be able to use

2to3 -w neo4j.py