Returns a string formatted from n strings, centered within n columns.
(cols, colwidth=_colwidth, spacing=_spacing)
| 641 | |
| 642 | |
| 643 | def formatstring(cols, colwidth=_colwidth, spacing=_spacing): |
| 644 | """Returns a string formatted from n strings, centered within n columns.""" |
| 645 | spacing *= ' ' |
| 646 | return spacing.join(c.center(colwidth) for c in cols) |
| 647 | |
| 648 | |
| 649 | EPOCH = 1970 |
no test coverage detected