25.4. 2to3-Automated Python 2 to 3 code translation–Python 2.7.13 documentation

2to3 is a Python program that reads Python 2.x source code and applies a series
of fixers to transform it into valid Python 3.x code. The standard library
contains a rich set of fixers that will handle almost all code. 2to3 supporting
library lib2to3 is…