Method: calendar.HTMLCalendar.formatday
Calls: 2226, Exceptions: 0, Paths: 2Back
Path 1: 1866 calls (0.84)
1 (62) 2 (62) 3 (62) 4 (62) 5 (62) 6 (62) 7 (62) 8 (61) 9 (61) 10 (61)
3 (268) 4 (268) 6 (267) 0 (266) 1 (266) 2 (266) 5 (265)
'
1def formatday(self, day, weekday): 2 """ 3 Return a day as a table cell. 4 """ 5 if day == 0: 6 # day outside month 7 return '<td class="%s"> </td>' % self.cssclass_noday 8 else: 9 return '<td class="%s">%d</td>' % (self.cssclasses[weekday], day)
Path 2: 360 calls (0.16)
0 (360)
5 (53) 0 (52) 1 (52) 2 (52) 6 (51) 3 (50) 4 (50)
'
1def formatday(self, day, weekday):
2 """
3 Return a day as a table cell.
4 """
5 if day == 0:
6 # day outside month
7 return '<td class="%s"> </td>' % self.cssclass_noday
8 else:
9 return '<td class="%s">%d</td>' % (self.cssclasses[weekday], day)