diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2012-03-26 10:14:36 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2012-03-26 10:15:06 -0700 |
commit | ca147d33e00737231aba6dfd86fcf96bfbac7522 (patch) | |
tree | a6e4b1a6eb39ce24b98efb6c00629353a7ec0c04 /piglit-summary-html.py | |
parent | 5854d0d43088ded32474d201bc5b866fb47dfe95 (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-x | piglit-summary-html.py | 2 |
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)) |