aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2016-02-25 17:42:44 -0800
committerGravatar Jan Tattermusch <jtattermusch@google.com>2016-02-25 17:43:12 -0800
commit60ab05ac218f62672f286df33db1855e7aba913b (patch)
tree15fdca36b29d918d0421c572e4bf4b4bd0bf108c /tools
parent006443c1278597fa06754d20d284f9ab3619f579 (diff)
allow run_tests.py to pass under python 2.6
Diffstat (limited to 'tools')
-rw-r--r--tools/run_tests/report_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/run_tests/report_utils.py b/tools/run_tests/report_utils.py
index 0032a98523..df114e5dae 100644
--- a/tools/run_tests/report_utils.py
+++ b/tools/run_tests/report_utils.py
@@ -47,7 +47,7 @@ def _filter_msg(msg, output_format):
# that make XML report unparseable.
filtered_msg = filter(
lambda x: x in string.printable and x != '\f' and x != '\v',
- msg.decode(errors='ignore'))
+ msg.decode('UTF-8', 'ignore'))
if output_format == 'HTML':
filtered_msg = filtered_msg.replace('"', '&quot;')
return filtered_msg