Ensured get_version returns a native string.

Returning unicode triggers a bug in Python 2.7:
http://bugs.python.org/issue11638

This problem was introduced in 4a103086 (unicode_literals).
This commit is contained in:
Aymeric Augustin 2012-10-25 21:44:48 +02:00
parent e8b258895a
commit 45c8818503
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def get_version(version=None):
mapping = {'alpha': 'a', 'beta': 'b', 'rc': 'c'}
sub = mapping[version[3]] + str(version[4])
return main + sub
return str(main + sub)
def get_git_changeset():
"""Returns a numeric identifier of the latest git changeset.