Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix python2 breakage caused by e5e044d.

  • Loading branch information...
commit 79716dcca8a83f298d3d744080f713e499726c23 1 parent e5e044d
@bmispelon bmispelon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/utils/translation/trans_real.py
View
4 django/utils/translation/trans_real.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.