python-tee
python-tee copied to clipboard
this package does not work any more in python3.8+
with tee.StdoutTee('/tmp/testtee.log'):
... sys.stdout.write('hello\n')
self.fp = open(self.filename, self.mode, self.buff)
ValueError: can't have unbuffered text I/O
we need to set buff=1 at least to make it work.
I have the same issue and buff=1 like tee.StdoutTee('foo', buff=1) solved my issue too.