1
0
mirror of https://github.com/django/django.git synced 2025-03-31 11:37:06 +00:00

Fix python2 breakage caused by e5e044da87800feb6ef63fef1765d8c05022d926.

This commit is contained in:
Baptiste Mispelon 2013-11-05 19:51:54 +01:00
parent e5e044da87
commit 79716dcca8

View File

@ -209,8 +209,8 @@ def activate(language):
thread.
"""
if language in _DEPRECATED_LOCALES:
msg = ("The use of the language code %r is deprecated. "
"Please use the %r translation instead.")
msg = ("The use of the language code '%s' is deprecated. "
"Please use the '%s' translation instead.")
warnings.warn(msg % (language, _DEPRECATED_LOCALES[language]),
PendingDeprecationWarning, stacklevel=2)
_active.value = translation(language)