Index: Tools/Scripts/webkitpy/common/system/outputcapture.py |
diff --git a/Tools/Scripts/webkitpy/common/system/outputcapture.py b/Tools/Scripts/webkitpy/common/system/outputcapture.py |
index dff3d69df9c80524feb5aeb5b6e9843846841e73..b9b0a0839425910660de41f33633875c18f2b05f 100644 |
--- a/Tools/Scripts/webkitpy/common/system/outputcapture.py |
+++ b/Tools/Scripts/webkitpy/common/system/outputcapture.py |
@@ -36,12 +36,6 @@ from StringIO import StringIO |
class OutputCapture(object): |
- # By default we capture the output to a stream. Other modules may override |
- # this function in order to do things like pass through the output. See |
- # webkitpy.test.main for an example. |
- @staticmethod |
- def stream_wrapper(stream): |
- return StringIO() |
def __init__(self): |
self.saved_outputs = dict() |
@@ -54,7 +48,7 @@ class OutputCapture(object): |
def _capture_output_with_name(self, output_name): |
stream = getattr(sys, output_name) |
- captured_output = self.stream_wrapper(stream) |
+ captured_output = StringIO() |
self.saved_outputs[output_name] = stream |
setattr(sys, output_name, captured_output) |
return captured_output |