Backed out changeset 12536416d070 (bug 991866) for breaking B2G mochitests.
authorRyan VanderMeulen <ryanvm@gmail.com>
Wed, 04 Jun 2014 16:04:14 -0400
changeset 206986 ad91b00b5af9d4299d5b6d043b70d59d416c31df
parent 206985 bee33343ee1849833b42fb7e8693e9fe6dc14013
child 206987 616163ca1aa528b7b418fe2edb84ac11973b851d
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs991866
milestone32.0a1
backs out12536416d070ca1cfc4e2bdf0e9b1ec5d426c61a
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 12536416d070 (bug 991866) for breaking B2G mochitests. CLOSED TREE
testing/mozbase/mozprocess/mozprocess/processhandler.py
--- a/testing/mozbase/mozprocess/mozprocess/processhandler.py
+++ b/testing/mozbase/mozprocess/mozprocess/processhandler.py
@@ -903,34 +903,24 @@ class StoreOutput(object):
     def __init__(self):
         self.output = []
 
     def __call__(self, line):
         self.output.append(line)
 
 class StreamOutput(object):
     """pass output to a stream and flush"""
-    encodings = ['utf-8', 'iso8859-1']
 
     def __init__(self, stream):
         self.stream = stream
 
     def __call__(self, line):
-        self.stream.write(self.decode(line) + '\n')
+        self.stream.write(line + '\n')
         self.stream.flush()
 
-    def decode(self, line):
-        exc_info = None
-        for encoding in self.encodings:
-            try:
-                return line.decode(encoding, 'replace')
-            except UnicodeDecodeError:
-                exc_info = sys.exc_info()
-        raise exc_info[0], exc_info[1], exc_info[2]
-
 class LogOutput(StreamOutput):
     """pass output to a file"""
 
     def __init__(self, filename):
         self.file_obj = open(filename, 'a')
         StreamOutput.__init__(self, self.file_obj)
 
     def __del__(self):