Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python2 -> python3 converter script #39

Open
JoelStienlet opened this issue Feb 23, 2018 · 2 comments
Open

python2 -> python3 converter script #39

JoelStienlet opened this issue Feb 23, 2018 · 2 comments

Comments

@JoelStienlet
Copy link
Contributor

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
Copy link
Owner

tobspr commented Feb 24, 2018

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

@JoelStienlet
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants