Returns a formatted week day name.
(self, day, width)
| 375 | return ' '.join(self.formatday(d, wd, width) for (d, wd) in theweek) |
| 376 | |
| 377 | def formatweekday(self, day, width): |
| 378 | """ |
| 379 | Returns a formatted week day name. |
| 380 | """ |
| 381 | if width >= max(map(len, day_name)): |
| 382 | names = day_name |
| 383 | else: |
| 384 | names = day_abbr |
| 385 | return names[day][:width].center(width) |
| 386 | |
| 387 | def formatweekheader(self, width): |
| 388 | """ |
no test coverage detected