obspy.core.util.misc.CaptureIO.reconfigure

CaptureIO.reconfigure(*, encoding=None, errors=None, newline=None, line_buffering=None, write_through=None)

Reconfigure the text stream with new parameters.

This also does an implicit stream flush.