

def _get_tr_css(row, tr_style):
    if row:
        if isinstance(tr_style, string_types):
            return tr_style
        elif callable(tr_style):
            return tr_style(row)
        else:
            raise ArgumentError(('expected string or callable, got %r' % tr_style))
    return ''

dataset/ETHPy150Open alimanfoo/petl/petl/io/html.py _get_tr_css/VarMisuse@13/19 `tr_style`->`row`