Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 45c8818503ebda101e7ff0f642c18880dd323669 1 parent e8b2588
Aymeric Augustin aaugustin authored
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.
Please sign in to comment.
Something went wrong with that request. Please try again.