def _find_separator_bounds(self, file_to_read, read_buffer):
    current_pos = read_buffer.position
    while True:
        if (current_pos >= len(read_buffer.data)):
            if (not self._try_to_ensure_num_bytes_in_buffer(file_to_read, read_buffer, (current_pos + 1))):
                return
        next_lf = read_buffer.data.find(b'\n', current_pos)
        if (next_lf >= 0):
            if ((next_lf > 0) and (read_buffer.data[(next_lf - 1):next_lf] == b'\r')):
                return ((next_lf - 1), (next_lf + 1))
            else:
                return (next_lf, (next_lf + 1))
        current_pos = len(read_buffer.data)
def _find_separator_bounds(self, file_to_read, read_buffer):
    current_pos = read_buffer.position
    while True:
        if (current_pos >= len(read_buffer.data)):
            if (not self._try_to_ensure_num_bytes_in_buffer(file_to_read, read_buffer, (current_pos + 1))):
                return
        next_lf = read_buffer.data.find(b'\n', current_pos)
        if (next_lf >= 0):
            if ((next_lf > 0) and (read_buffer.data[(next_lf - 1):next_lf] == b'\r')):
                return ((next_lf - 1), (next_lf + 1))
            else:
                return (next_lf, (next_lf + 1))
        current_pos = len(read_buffer.data)