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

Method formatweekheader

Lib/calendar.py:518–523  ·  view source on GitHub ↗

Return a header for a week as a table row.

(self)

Source from the content-addressed store, hash-verified

516 return f'<th class="{self.cssclasses_weekday_head[day]}">{day_abbr[day]}</th>'
517
518 def formatweekheader(self):
519 """
520 Return a header for a week as a table row.
521 """
522 s = ''.join(self.formatweekday(i) for i in self.iterweekdays())
523 return f'<tr>{s}</tr>'
524
525 def formatmonthname(self, theyear, themonth, withyear=True):
526 """

Callers 1

formatmonthMethod · 0.95

Calls 3

formatweekdayMethod · 0.95
iterweekdaysMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected