Returns a string formatted from n strings, centered within n columns.
(cols, colwidth=_colwidth, spacing=_spacing)
| 822 | |
| 823 | |
| 824 | def formatstring(cols, colwidth=_colwidth, spacing=_spacing): |
| 825 | """Returns a string formatted from n strings, centered within n columns.""" |
| 826 | spacing *= ' ' |
| 827 | return spacing.join(c.center(colwidth) for c in cols) |
| 828 | |
| 829 | |
| 830 | EPOCH = 1970 |
no test coverage detected
searching dependent graphs…