MCPcopy Index your code
hub / github.com/RustPython/RustPython / formatmonthname

Method formatmonthname

Lib/calendar.py:507–517  ·  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

505 return '<tr>%s</tr>' % s
506
507 def formatmonthname(self, theyear, themonth, withyear=True):
508 """
509 Return a month name as a table row.
510 """
511 _validate_month(themonth)
512 if withyear:
513 s = '%s %s' % (month_name[themonth], theyear)
514 else:
515 s = '%s' % month_name[themonth]
516 return '<tr><th colspan="7" class="%s">%s</th></tr>' % (
517 self.cssclass_month_head, s)
518
519 def formatmonth(self, theyear, themonth, withyear=True):
520 """

Callers 1

formatmonthMethod · 0.95

Calls 1

_validate_monthFunction · 0.85

Tested by

no test coverage detected