Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.5.x] 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 4a10308 (unicode_literals).

Backport of 45c8818 from master.
  • Loading branch information...
commit 9edec9e75d3fdb7390b30872bc0f849de0251ec4 1 parent d7f8894
@aaugustin aaugustin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/utils/version.py
View
2  django/utils/version.py
@@ -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.