summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/run_host_test6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/run_host_test b/util/run_host_test
index db3345845d..6d0c1adb5e 100755
--- a/util/run_host_test
+++ b/util/run_host_test
@@ -1,10 +1,10 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
# Copyright 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from cStringIO import StringIO
+from io import StringIO
import os
import pexpect
import signal
@@ -28,6 +28,8 @@ class Tee(object):
self._target = target
def write(self, data):
+ if isinstance(data, bytes):
+ data = data.decode('utf-8')
sys.stdout.write(data)
self._target.write(data)