Always use firstweekday module 7.
This commit is contained in:
parent
5f284da2d4
commit
04ee87097c
|
@ -152,7 +152,7 @@ class Calendar(object):
|
|||
while True:
|
||||
yield date
|
||||
date += oneday
|
||||
if date.month != month and date.weekday() == self.firstweekday:
|
||||
if date.month != month and date.weekday() == self.firstweekday%7:
|
||||
break
|
||||
|
||||
def itermonthdays2(self, year, month):
|
||||
|
|
Loading…
Reference in New Issue