3to2

Python2 helper to backport code written for Python version 3.x into 2.x

Install

All systems
curl cmd.cat/3to2.sh
Ubuntu
apt-get install python-3to2
Windows (WSL2)
sudo apt-get update sudo apt-get install python-3to2
Raspbian
apt-get install python-3to2

python-3to2

Python2 helper to backport code written for Python version 3.x into 2.x

lib3to2 is a set of fixers that are intended to backport code written for Python version 3.x into Python version 2.x. The final target 2.x version is the latest version of the 2.7 branch, as that is the last release in the Python 2.x branch. Some attempts have been made, however, to make code compatible as much as possible with versions of Python back to 2.5, and bug reports are still welcome for Python features only present in 2.6+ that are not addressed by lib3to2. This is the Python2 version of the package.

python3-3to2

Python3 helper to backport code written for Python version 3.x into 2.x

lib3to2 is a set of fixers that are intended to backport code written for Python version 3.x into Python version 2.x. The final target 2.x version is the latest version of the 2.7 branch, as that is the last release in the Python 2.x branch. Some attempts have been made, however, to make code compatible as much as possible with versions of Python back to 2.5, and bug reports are still welcome for Python features only present in 2.6+ that are not addressed by lib3to2. This is the Python3 version of the package.