From: Walter Dörwald Date: Sun, 2 Apr 2006 22:11:10 +0000 (+0000) Subject: Always use firstweekday module 7. X-Git-Tag: v2.5a1~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04ee87097c12988351d576756cde3440756f026e;p=python Always use firstweekday module 7. --- diff --git a/Lib/calendar.py b/Lib/calendar.py index 41537ba7a6..1a4dbba536 100644 --- a/Lib/calendar.py +++ b/Lib/calendar.py @@ -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):