Returns a formatted day.
(self, day, weekday, width)
| 340 | print(self.formatweek(theweek, width), end='') |
| 341 | |
| 342 | def formatday(self, day, weekday, width): |
| 343 | """ |
| 344 | Returns a formatted day. |
| 345 | """ |
| 346 | if day == 0: |
| 347 | s = '' |
| 348 | else: |
| 349 | s = '%2i' % day # right-align single-digit days |
| 350 | return s.center(width) |
| 351 | |
| 352 | def formatweek(self, theweek, width): |
| 353 | """ |
no test coverage detected