Skip to content

Commit

Permalink
Fix to version parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Legrandin committed Jun 24, 2014
1 parent d76f321 commit b4da31e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
version_tuple = eval(line.split("=")[1])

version = release = "%d.%d" % version_tuple[:-1]
if version_tuple[2].isdigit():
release += "."
if version_tuple[2] is not None:
if str(version_tuple[2]).isdigit():
version_string += "."
release += str(version_tuple[2])

# The language for content autogenerated by Sphinx. Refer to documentation
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
version_tuple = eval(line.split("=")[1])

version_string = "%d.%d" % version_tuple[:-1]
if version_tuple[2].isdigit():
version_string += "."
if version_tuple[2] is not None:
if str(version_tuple[2]).isdigit():
version_string += "."
version_string += str(version_tuple[2])

if sys.version[0:1] == '1':
Expand Down

0 comments on commit b4da31e

Please sign in to comment.