commit | 04ee87097c12988351d576756cde3440756f026e | [log] [tgz] |
---|---|---|
author | Walter Dörwald <walter@livinglogic.de> | Sun Apr 02 22:11:10 2006 +0000 |
committer | Walter Dörwald <walter@livinglogic.de> | Sun Apr 02 22:11:10 2006 +0000 |
tree | d987c83d8dfa2c6e00549e0f2ee2e67452a2807f | |
parent | 5f284da2d4b7b3883d46eb49128982922da322a3 [diff] |
Always use firstweekday module 7.
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 @@ 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):