4 ms·
Have you tried https://docs.python.org/3.9/library/2to3.html https://docs.python.org/3.9/library/2to3.html? It should automate some of the syntax conversation.
by MapleWalnut 7y ago
Have you tried https://docs.python.org/3.9/library/2to3.html https://docs.python.org/3.9/library/2to3.html? It should automate some of the syntax conversation.
You can also write custom transforms with 2to3 but I've found https://pybowler.io https://pybowler.io is a decent wrapper. I haven't used it for 2to3 conversion though.