python-tee icon indicating copy to clipboard operation
python-tee copied to clipboard

this package does not work any more in python3.8+

Open braindevices opened this issue 5 years ago • 2 comments

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

braindevices avatar Nov 10 '20 12:11 braindevices

we need to set buff=1 at least to make it work.

braindevices avatar Nov 10 '20 13:11 braindevices

I have the same issue and buff=1 like tee.StdoutTee('foo', buff=1) solved my issue too.

garaemon avatar May 09 '21 05:05 garaemon