warn("Split raw file detected but next file %s does not "
"exist." % next_fname)
break
if not isinstance(fname, str):
// avoid serialization error when copying file-like
fname = None // noqa
After Change
def __init__(self, fname, allow_maxshield=False, preload=False,
verbose=None): // noqa: D102
raws = []
do_check_fname = not _file_like(fname)
next_fname = fname
while next_fname is not None:
raw, next_fname, buffer_size_sec = \
self._read_raw_file(next_fname, allow_maxshield,