Affects Version/s: None
Fix Version/s: 2.0
Sprint:TVB release 2.0
TVB-C Task:8.2 Pipeline Integration
Perform python 2 to 3 migration
Because of the large number of files to be modified, I want to approach this task in an automatic way.
From my searches I found that there are more tools to perform this action. I chose 2to3-script for this task and I tested it on a test file.
- Open console for an environment
- Use a command like this: C:\Users\gabriel.florea\AppData\Local\Continuum\anaconda3\envs\tvb-run27\Scripts\2to3-script.py -w C:\Users\gabriel.florea\Desktop\MyWork\Trials\firstFile.py
(first path is the location for script, -w to write changes into file, the last path is file)
- Maintain or not the compatibility with python 2?
- 2to3 can be applied on folders(i.e. more file with a single command)?