obspy.io.cmtsolution.core._buffer_proxy
- _buffer_proxy(filename_or_buf, function, reset_fp=True, file_mode='rb', *args, **kwargs)[source]
Calls a function with an open file or file-like object as the first argument. If the file originally was a filename, the file will be opened, otherwise it will just be passed to the underlying function.