Skip to content

Commit

Permalink
Fix version_info for release versions
Browse files Browse the repository at this point in the history
  • Loading branch information
embolalia committed Aug 2, 2015
1 parent 56bc4c7 commit 5eecc72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions willie/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ def _version_info():
version_groups = regex.match(__version__).groups()
major, minor, micro = (int(piece) for piece in version_groups[0:3])
level = version_groups[3]
serial = int(version_groups[4]) or 0
serial = int(version_groups[4] or 0)
if level == 'a':
level = 'alpha'
elif level == 'b':
level = 'beta'
elif level == 'rc':
level = 'candidate'
elif not level and not version_groups[5]:
elif not level and version_groups[4] is None:
level = 'final'
else:
level = 'alpha'
Expand Down

0 comments on commit 5eecc72

Please sign in to comment.