Add flush method.
This commit is contained in:
parent
b4c8ac13f3
commit
91955f16ff
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user