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

[reproducibility] Update code to Python 3 #7

Open
cthoyt opened this issue Feb 8, 2021 · 0 comments
Open

[reproducibility] Update code to Python 3 #7

cthoyt opened this issue Feb 8, 2021 · 0 comments

Comments

@cthoyt
Copy link

cthoyt commented Feb 8, 2021

Python 2's end of life support happened last year, so it would be good to make this code run on modern versions of Python.

I'd be happy to submit a PR for this. There's a tool called 2to3 built in in python that can take care of this (https://docs.python.org/3/library/2to3.html)

It can be done with the following code (when there's a valid python3 installation available):

$ 2to3 -w predict.py
$ 2to3 -w predict_enriched.py
@cthoyt cthoyt changed the title Update code to Python 3 [reproducibility] Update code to Python 3 Feb 8, 2021
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

1 participant