Add flush method.

This commit is contained in:
Tomeu Vizoso 2007-07-06 18:24:38 +02:00
parent b4c8ac13f3
commit 91955f16ff

View File

@ -78,6 +78,9 @@ class StdoutCatcher:
_log_writer.write(STDOUT_LEVEL, txt)
sys.__stdout__.write(txt)
def flush(self):
sys.__stderr__.flush()
class StderrCatcher:
def write(self, txt):
_log_writer.write(STDERR_LEVEL, txt)