Always use firstweekday module 7.

This commit is contained in:
Walter Dörwald 2006-04-02 22:11:10 +00:00
parent 5f284da2d4
commit 04ee87097c
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class Calendar(object):
while True: while True:
yield date yield date
date += oneday date += oneday
if date.month != month and date.weekday() == self.firstweekday: if date.month != month and date.weekday() == self.firstweekday%7:
break break
def itermonthdays2(self, year, month): def itermonthdays2(self, year, month):