diff options
author | Walter Dörwald <walter@livinglogic.de> | 2006-04-02 22:11:10 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2006-04-02 22:11:10 (GMT) |
commit | 04ee87097c12988351d576756cde3440756f026e (patch) | |
tree | d987c83d8dfa2c6e00549e0f2ee2e67452a2807f | |
parent | 5f284da2d4b7b3883d46eb49128982922da322a3 (diff) | |
download | cpython-04ee87097c12988351d576756cde3440756f026e.zip cpython-04ee87097c12988351d576756cde3440756f026e.tar.gz cpython-04ee87097c12988351d576756cde3440756f026e.tar.bz2 |
Always use firstweekday module 7.
-rw-r--r-- | Lib/calendar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/calendar.py b/Lib/calendar.py index 41537ba..1a4dbba 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): |