(self)
| 117 | raise ValueError("timezone changed during initialization") |
| 118 | |
| 119 | def __calc_weekday(self): |
| 120 | # Set self.a_weekday and self.f_weekday using the calendar |
| 121 | # module. |
| 122 | a_weekday = [calendar.day_abbr[i].lower() for i in range(7)] |
| 123 | f_weekday = [calendar.day_name[i].lower() for i in range(7)] |
| 124 | self.a_weekday = a_weekday |
| 125 | self.f_weekday = f_weekday |
| 126 | |
| 127 | def __calc_month(self): |
| 128 | # Set self.f_month and self.a_month using the calendar module. |