@staticmethod
    def _field_widths(field_names, first_line):

        # use the first line +----+-------+ to infer column widths
        # accounting for padding and dividers
        widths = [max(0, 2 - len(i)) for i in first_line.split('+')[1:-1]]
        return dict(zip(field_names, widths))
dataset/ETHPy150Open openstack/cliff/cliff/formatters/table.py/TableFormatter._field_widths/swapped operands of `-`