Returns a formatted day.
(self, day, weekday, width)
| 359 | print(self.formatweek(theweek, width), end='') |
| 360 | |
| 361 | def formatday(self, day, weekday, width): |
| 362 | """ |
| 363 | Returns a formatted day. |
| 364 | """ |
| 365 | if day == 0: |
| 366 | s = '' |
| 367 | else: |
| 368 | s = '%2i' % day # right-align single-digit days |
| 369 | return s.center(width) |
| 370 | |
| 371 | def formatweek(self, theweek, width): |
| 372 | """ |
no test coverage detected