Jan-22-2020, 10:06 PM
It really depends on your project. Start with 2to3, which will do a lot of the tedious work for you, and test thoroughly.
In my experience, half or more of the effort is dealing with bytes vs str. I recommend you use type hinting and mypy to go back and validate those parts of your code.
A lot of people find the migration difficult enough that they've waited this long, so I don't want to suggest that it's going to be easy. I'd love it if you post back here with any findings though, it might inspire a tutorial on doing such a migration.
In my experience, half or more of the effort is dealing with bytes vs str. I recommend you use type hinting and mypy to go back and validate those parts of your code.
A lot of people find the migration difficult enough that they've waited this long, so I don't want to suggest that it's going to be easy. I'd love it if you post back here with any findings though, it might inspire a tutorial on doing such a migration.