tobspr / LUI

Lightweight User Interface for Panda3D
MIT License
83 stars 26 forks source link

python2 -> python3 converter script #39

Open JoelStienlet opened 6 years ago

JoelStienlet commented 6 years ago

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

tobspr commented 6 years ago

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

JoelStienlet commented 6 years ago

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.