From 3325ec869c10aba0fcb52c826d79633818c14dbc Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 24 Dec 2014 07:53:06 -0500 Subject: [PATCH] Fixed #24045 -- Removed useless mark_safe() call in trans_null.py --- django/utils/translation/trans_null.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/django/utils/translation/trans_null.py b/django/utils/translation/trans_null.py index fa4f0af668..cb909c63f7 100644 --- a/django/utils/translation/trans_null.py +++ b/django/utils/translation/trans_null.py @@ -4,7 +4,6 @@ from django.conf import settings from django.utils.encoding import force_text -from django.utils.safestring import mark_safe, SafeData def ngettext(singular, plural, number): @@ -33,8 +32,6 @@ check_for_language = lambda x: True def gettext(message): - if isinstance(message, SafeData): - return mark_safe(message) return message