summaryrefslogtreecommitdiff
path: root/piglit-summary-html.py
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2012-03-26 10:14:36 -0700
committerKenneth Graunke <kenneth@whitecape.org>2012-03-26 10:15:06 -0700
commitca147d33e00737231aba6dfd86fcf96bfbac7522 (patch)
treea6e4b1a6eb39ce24b98efb6c00629353a7ec0c04 /piglit-summary-html.py
parent5854d0d43088ded32474d201bc5b866fb47dfe95 (diff)
html: Use isinstance(x, basestring) rather than "str" and "unicode."
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'piglit-summary-html.py')
-rwxr-xr-xpiglit-summary-html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/piglit-summary-html.py b/piglit-summary-html.py
index 974ed52ca..d5ec0e5e1 100755
--- a/piglit-summary-html.py
+++ b/piglit-summary-html.py
@@ -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))