TeeContext
- class glotaran.utils.tee.TeeContext[source]
Bases:
object
Context manager that allows to work with string written to stdout.
This context manager behaves similar to the
tee
shell command. https://linuxize.com/post/linux-tee-commandCreate new
StringIO
buffer and save reference to originalsys.stdout
.Methods Summary
Flush values in the buffer.
Return values written to buffer.
Write to buffer and original
sys.stdout
.Methods Documentation