Commit ca147d33 authored by Kenneth Graunke's avatar Kenneth Graunke

html: Use isinstance(x, basestring) rather than "str" and "unicode."

Signed-off-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
parent 5854d0d4
......@@ -89,7 +89,7 @@ def buildDetailValue(detail):
items = map(buildResultListItem, detail)
return ResultList % { 'items': "".join(items) }
elif isinstance(detail, str) or isinstance(detail, unicode):
elif isinstance(detail, basestring):
return ResultMString % { 'detail': cgi.escape(detail) }
return cgi.escape(str(detail))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment