I tried to modify the sintax using 2to3 tool by running command
python C:\\Python32\\Tools\\scripts\\2to3.py neo4j.py
and got the output
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
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.