mirror of https://github.com/python/cpython
Always use firstweekday module 7.
This commit is contained in:
parent
5f284da2d4
commit
04ee87097c
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue