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

Method formatmonthname

Lib/calendar.py:525–534  ·  view source on GitHub ↗

Return a month name as a table row.

(self, theyear, themonth, withyear=True)

Source from the content-addressed store, hash-verified

523 return f'<tr>{s}</tr>'
524
525 def formatmonthname(self, theyear, themonth, withyear=True):
526 """
527 Return a month name as a table row.
528 """
529 _validate_month(themonth)
530 if withyear:
531 s = f'{standalone_month_name[themonth]} {theyear}'
532 else:
533 s = standalone_month_name[themonth]
534 return f'<tr><th colspan="7" class="{self.cssclass_month_head}">{s}</th></tr>'
535
536 def formatmonth(self, theyear, themonth, withyear=True):
537 """

Callers 1

formatmonthMethod · 0.95

Calls 1

_validate_monthFunction · 0.85

Tested by

no test coverage detected