Returns a string formatted from n strings, centered within n columns.
(cols, colwidth=_colwidth, spacing=_spacing)
| 789 | |
| 790 | |
| 791 | def formatstring(cols, colwidth=_colwidth, spacing=_spacing): |
| 792 | """Returns a string formatted from n strings, centered within n columns.""" |
| 793 | spacing *= ' ' |
| 794 | return spacing.join(c.center(colwidth) for c in cols) |
| 795 | |
| 796 | |
| 797 | EPOCH = 1970 |
no test coverage detected