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

Update to Python 3 #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jamestwebber
Copy link

Since January 2020, Python 2 is no longer supported, and no longer gets updates. Many other packages no longer support it.

I just ran the 2to3 tool on the project and went through the changes. I haven't tested everything though.

The primary change was just going from xrange to range, which does the same thing in Python 3. Most print statements were already using parentheses for some reason so those were fine.

2to3 assumes you wanted a list from dict.keys() and map so it wraps those calls. That might not be necessary (I didn't review all the uses) but it should maintain functionality at least.

@verdurin
Copy link

Is there any hope of this being merged? I'm looking at adding tama to EasyBuild, for installation on HPC clusters, and obviously relying on Python 2 is problematic.

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

Successfully merging this pull request may close these issues.

2 participants