Skip to content

Commit

Permalink
Fixed version check for python distributions with + in version number…
Browse files Browse the repository at this point in the history
…. Bumped version number
  • Loading branch information
runfalk committed Jun 13, 2014
1 parent 5a72fbb commit f595b3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spans/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""

__version__ = "0.1.1"
__version__ = "0.1.2"
__all__ = [
"intrange",
"floatrange",
Expand Down
6 changes: 3 additions & 3 deletions spans/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

__all__ = ["python3", "version", "bstr", "ustr", "uchr", "u_doctest"]

version = tuple(map(int, sys.version.split(" ")[0].split(".")))
version = tuple(map(int, sys.version.split(".")[0:2]))
python3 = False

if version >= (3, 0, 0):
if version >= (3, 0):
python3 = True

if version < (3, 3, 0):
if version < (3, 3):
raise ImportError("Module is only compatible with Python (<=2.7, >=3.3)")

bstr, ustr, uchr = bytes, str, chr
Expand Down

0 comments on commit f595b3d

Please sign in to comment.