« first day (4948 days earlier)   

7:09 PM
I'd run modernize on the codebase, then pyupgrade (or rather ruff with the pyupgrade module selected). and then fix whatever is broken manually, remove any six usage, etc.
 
7:51 PM
@ABcDexter That list of 2to3 fixers that Mister Miyagi posted covers most of the things you need to keep in mind. But it glosses over a few issues.
Python 3 has much better handling of Unicode. It makes a clear distinction between byte strings and text. Python 2 blurs that distinction, and its Unicode handling has some fundamental flaws.
So Python 2 code that deals with Unicode may contain odd hacks to try and deal with those flaws. It may not necessarily behave correctly in all cases. And it may behave quite differently if you try to run it in Python 3. In some cases, it won't run, and you'll get an error message. But it might run and do wrong things, resulting in mojibake. So you need to carefully test such code and inspect the output.
 

« first day (4948 days earlier)