Refs #27795 -- Removed force_bytes() usage in admindocs.

Refs #12892 is probably obsolete.
This commit is contained in:
Jon Dufresne 2018-10-02 09:18:52 -05:00 committed by Tim Graham
parent 70d0a1ca02
commit d4fc111c24
1 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,6 @@ from email.errors import HeaderParseError
from email.parser import HeaderParser
from django.urls import reverse
from django.utils.encoding import force_bytes
from django.utils.safestring import mark_safe
try:
@ -77,7 +76,7 @@ def parse_rst(text, default_reference_context, thing_being_parsed=None):
'raw_enabled': False,
'file_insertion_enabled': False,
}
thing_being_parsed = thing_being_parsed and force_bytes('<%s>' % thing_being_parsed)
thing_being_parsed = thing_being_parsed and '<%s>' % thing_being_parsed
# Wrap ``text`` in some reST that sets the default role to ``cmsreference``,
# then restores it.
source = """