Method: calendar.TextCalendar.formatmonthname
Calls: 66, Exceptions: 0, Paths: 2Back
Path 1: 60 calls (0.91)
2004 (36) 0 (24)
1 (5) 2 (5) 3 (5) 4 (5) 5 (5) 6 (5) 7 (5) 8 (5) 9 (5) 10 (5)
20 (60)
False (60)
' January ' (5) ' February ' (5) ' March ' (5) ' April ' (5) ' May ' (5) ' June ...
1def formatmonthname(self, theyear, themonth, width, withyear=True):
2 """
3 Return a formatted month name.
4 """
5 s = month_name[themonth]
6 if withyear:
7 s = "%s %r" % (s, theyear)
8 return s.center(width)
Path 2: 6 calls (0.09)
2010 (3) 2004 (2) 0 (1)
10 (3) 1 (2) 2 (1)
10 (3) 20 (3)
True (6)
'October 2010' (3) ' January 2004 ' (2) ' February 0 ' (1)
1def formatmonthname(self, theyear, themonth, width, withyear=True):
2 """
3 Return a formatted month name.
4 """
5 s = month_name[themonth]
6 if withyear:
7 s = "%s %r" % (s, theyear)
8 return s.center(width)