Path 1: 1 calls (1.0)

2004 (1)

3 (1)

list (1)

1def yeardatescalendar(self, year, width=3):
2        """
3        Return the data for the specified year ready for formatting. The return
4        value is a list of month rows. Each month row contains up to width months.
5        Each month contains between 4 and 6 weeks and each week contains 1-7
6        days. Days are datetime.date objects.
7        """
8        months = [
9            self.monthdatescalendar(year, i)
10            for i in range(January, January+12)
11        ]
12        return [months[i:i+width] for i in range(0, len(months), width) ]