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

Future proofs by checking for Python versions >= 3 #26

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

Conversation

stsievert
Copy link

The code checked for exactly Python 3. When Python 4 is released, this code will break and revert to the Python 2 behavior, something we don't want.

That is, I changed

py3 = (sys.version_info[0] == 3)

to

not_py2 = (sys.version_info[0] >= 3)

This is a small refactor, and hence a web-interface change. I haven't tested any of this code.

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.

1 participant