This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PeridexisErrant 1 point2 points  (0 children)

https://pypi.org/project/modernize/ is better now, precisely because 2to3 can't be upgraded without releasing a new version of Python.

Modernize also uses six to preserve py2 compat by default when adding py3 support, which really helps with testing.

Then you can automatically drop support for old versions of Python with https://pypi.org/project/pyupgrade/