obspy.core.util.misc.CaptureIO.writable

CaptureIO.writable()

Return whether object was opened for writing.

If False, write() will raise OSError.