From 79716dcca8a83f298d3d744080f713e499726c23 Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Tue, 5 Nov 2013 19:51:54 +0100 Subject: [PATCH] Fix python2 breakage caused by e5e044da87800feb6ef63fef1765d8c05022d926. --- django/utils/translation/trans_real.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/utils/translation/trans_real.py b/django/utils/translation/trans_real.py index bd517f36ce6..30a92aa3bcd 100644 --- a/django/utils/translation/trans_real.py +++ b/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)