I found a way in the Pycharm IDE to convert a file from v2 to v3 using the 2to3 tool.
I used the pycharm comunity v 2016.2.3 application on a windows environment.
The tool modifies the file code, and your IDE is reflected with the changes.
To change all the files in a folder, enter the command
2to3 . -w
The -w option to write changes. For more information write:
2to3 -h
M. Hassan
source share