'Return cells from a particular row'

def _get_row(self, element, min_col=1, max_col=None):

    col_counter = min_col
    data_only = getattr(self.parent, 'data_only', False)
    for cell in safe_iterator(element, CELL_TAG):
        coordinate = cell.get('r')
        (row, column) = coordinate_to_tuple(coordinate)
        if ((max_col is not None) and (column > max_col)):
            break
        if (min_col <= column):
            if (col_counter < column):
                for col_counter in range(max(col_counter, min_col), column):
                    (yield EMPTY_CELL)
            data_type = cell.get('t', 'n')
            style_id = int(cell.get('s', 0))
            value = None
            formula = cell.findtext(FORMULA_TAG)
            if ((formula is not None) and (not data_only)):
                data_type = 'f'
                value = ('=%s' % formula)
            else:
                value = (cell.findtext(VALUE_TAG) or None)
            (yield ReadOnlyCell(self, row, column, value, data_type, style_id))
        col_counter = (column + 1)
    if (max_col is not None):
        for _ in range(col_counter, (max_col + 1)):
            (yield EMPTY_CELL)
