mirror of
https://github.com/django/django.git
synced 2025-10-01 14:31:19 +00:00
Fix python2 breakage caused by e5e044da87
.
This commit is contained in:
parent
e5e044da87
commit
79716dcca8
1 changed files with 2 additions and 2 deletions
|
@ -209,8 +209,8 @@ def activate(language):
|
||||||
thread.
|
thread.
|
||||||
"""
|
"""
|
||||||
if language in _DEPRECATED_LOCALES:
|
if language in _DEPRECATED_LOCALES:
|
||||||
msg = ("The use of the language code %r is deprecated. "
|
msg = ("The use of the language code '%s' is deprecated. "
|
||||||
"Please use the %r translation instead.")
|
"Please use the '%s' translation instead.")
|
||||||
warnings.warn(msg % (language, _DEPRECATED_LOCALES[language]),
|
warnings.warn(msg % (language, _DEPRECATED_LOCALES[language]),
|
||||||
PendingDeprecationWarning, stacklevel=2)
|
PendingDeprecationWarning, stacklevel=2)
|
||||||
_active.value = translation(language)
|
_active.value = translation(language)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue