Skip to content
Browse files

Ensured get_version returns a native string.

Returning unicode triggers a bug in Python 2.7:

This problem was introduced in 4a10308 (unicode_literals).
  • Loading branch information...
1 parent e8b2588 commit 45c8818503ebda101e7ff0f642c18880dd323669 @aaugustin aaugustin committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/utils/
2 django/utils/
@@ -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.

0 comments on commit 45c8818

Please sign in to comment.
Something went wrong with that request. Please try again.