html_diff: Really return str, not bytes.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-08-06 21:57:18 -07:00 committed by Tim Abbott
parent 80c0e60edc
commit 3e7503a607
1 changed files with 1 additions and 1 deletions

View File

@ -19,6 +19,6 @@ def highlight_html_differences(s1: str, s2: str, msg_id: Optional[int]=None) ->
elem.tag = 'span'
elem.set('class', 'highlight_text_inserted')
retval = lxml.html.tostring(fragment)
retval = lxml.html.tostring(fragment, encoding="unicode")
return retval