Commit 04ee8709 authored by Walter Dörwald's avatar Walter Dörwald

Always use firstweekday module 7.

parent 5f284da2
...@@ -152,7 +152,7 @@ class Calendar(object): ...@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment