LUI icon indicating copy to clipboard operation
LUI copied to clipboard

python2 -> python3 converter script

Open JoelStienlet opened this issue 7 years ago • 2 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

JoelStienlet avatar Feb 23 '18 15:02 JoelStienlet

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

tobspr avatar Feb 24 '18 09:02 tobspr

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.

JoelStienlet avatar Feb 24 '18 09:02 JoelStienlet