Method: calendar.formatstring
Calls: 153, Exceptions: 0, Paths: 1Back
Path 1: 153 calls (1.0)
TextCalendar.formatyear.
20 (152) 3 (1)
6 (152) 1 (1)
'Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su' (20) ' January February March ...
1def formatstring(cols, colwidth=_colwidth, spacing=_spacing):
2 """Returns a string formatted from n strings, centered within n columns."""
3 spacing *= ' '
4 return spacing.join(c.center(colwidth) for c in cols)