9352: TypeError: 'str' does not support the buffer interface

This commit is contained in:
SNoiraud 2016-03-30 12:12:28 +02:00
parent afd32966f2
commit 0de5324c07

View File

@ -454,7 +454,7 @@ def html_escape(text):
"""Convert the text and replace some characters with a &# variant."""
# First single characters, no quotes
text = escape(text)
text = escape(str(text))
# Deal with double quotes.
m = _html_dbl_quotes.match(text)
@ -5366,7 +5366,7 @@ class PersonPages(BasePage):
elif first_surname:
first_surname = False
tcell += Html("a", html_escape(surname),
title = "Surnames " + surname)
title = "Surnames " + str(surname))
else:
tcell += " "