MCPcopy Index your code
hub / github.com/python/cpython / formatday

Method formatday

Lib/calendar.py:495–503  ·  view source on GitHub ↗

Return a day as a table cell.

(self, day, weekday)

Source from the content-addressed store, hash-verified

493 cssclass_year = "year"
494
495 def formatday(self, day, weekday):
496 """
497 Return a day as a table cell.
498 """
499 if day == 0:
500 # day outside month
501 return f'<td class="{self.cssclass_noday}">&nbsp;</td>'
502 else:
503 return f'<td class="{self.cssclasses[weekday]}">{day}</td>'
504
505 def formatweek(self, theweek):
506 """

Callers 1

formatweekMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected