Skip to content

Commit

Permalink
Restore soft compatibility with 3.7+
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrrr authored and galuszkak committed Mar 13, 2019
1 parent 63b0ce6 commit cacf6a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_suite():

major_version, minor_version = sys.version_info[:2]
if not ((major_version == 2 and minor_version == 7)
or (major_version == 3 and minor_version in (5, 6))):
or (major_version == 3 and minor_version >= 5)): # secretly allow 3.7+
sys.stderr.write("Sorry, only Python 2.7, 3.5, and 3.6 are supported "
"at this time.\n")
exit(1)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = py{27,35,36}, pypy
envlist = py{27,35,36}, pypy, pypy3

[testenv]
commands = {envpython} setup.py test

0 comments on commit cacf6a6

Please sign in to comment.