tobspr / LUI

Lightweight User Interface for Panda3D

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python2 -> python3 converter script

JoelStienlet opened this issue · comments

Hello Tobias,
I just want to share my python version conversion script, based on the "2to3" tool and a few "sed" commands, it may be useful to others too.
I've tested all the "B_" files in the Demos folder (that I renamed to Demos3), they all seem working. Still some tests to do though.
Best Regards

LUI_python2_to_3.py.txt

Hi, cool! Is this still compatible with python 2 ?

I don't think so, the code generated by 2to3 is python3 only, but it doesn't make that many changes, so I think it will be feasible in some more or less near future to make a manual version compatible with both.