def _pad_string(self, str, colwidth):
        """Center-pads a string to the given column width using spaces."""
        width = self._disp_width(str)
        prefix = (colwidth - width - 1) // 2
        suffix = colwidth - prefix - width
        return ' ' * prefix + str + ' ' * suffix
dataset/ETHPy150Open Leviathan1995/Pylsy/pylsy/pylsy.py/pylsytable._pad_string/swapped operands of `-`