Method: calendar.HTMLCalendar.formatmonthname
Calls: 67, Exceptions: 0, Paths: 2Back
Path 1: 61 calls (0.91)
2004 (37) 2017 (24)
1 (6) 2 (5) 3 (5) 4 (5) 5 (5) 6 (5) 7 (5) 8 (5) 9 (5) 10 (5)
False (61)
'
1def formatmonthname(self, theyear, themonth, withyear=True): 2 """ 3 Return a month name as a table row. 4 """ 5 if withyear: 6 s = '%s %s' % (month_name[themonth], theyear) 7 else: 8 s = '%s' % month_name[themonth] 9 return '<tr><th colspan="7" class="%s">%s</th></tr>' % ( 10 self.cssclass_month_head, s)
Path 2: 6 calls (0.09)
2010 (3) 2017 (2) 2004 (1)
10 (3) 5 (2) 1 (1)
True (4) 10 (2)
'
1def formatmonthname(self, theyear, themonth, withyear=True): 2 """ 3 Return a month name as a table row. 4 """ 5 if withyear: 6 s = '%s %s' % (month_name[themonth], theyear) 7 else: 8 s = '%s' % month_name[themonth] 9 return '<tr><th colspan="7" class="%s">%s</th></tr>' % ( 10 self.cssclass_month_head, s)