mirror of
https://github.com/django/django.git
synced 2025-03-29 02:30:48 +00:00
Fixed #24045 -- Removed useless mark_safe() call in trans_null.py
This commit is contained in:
parent
ffa548fb56
commit
3325ec869c
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user