Permalink
Browse files

Fix python2 breakage caused by e5e044d.

  • Loading branch information...
1 parent e5e044d commit 79716dcca8a83f298d3d744080f713e499726c23 @bmispelon bmispelon committed Nov 5, 2013
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)

0 comments on commit 79716dc

Please sign in to comment.