summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2006-04-02 22:11:10 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2006-04-02 22:11:10 (GMT)
commit04ee87097c12988351d576756cde3440756f026e (patch)
treed987c83d8dfa2c6e00549e0f2ee2e67452a2807f
parent5f284da2d4b7b3883d46eb49128982922da322a3 (diff)
downloadcpython-04ee87097c12988351d576756cde3440756f026e.zip
cpython-04ee87097c12988351d576756cde3440756f026e.tar.gz
cpython-04ee87097c12988351d576756cde3440756f026e.tar.bz2
Always use firstweekday module 7.
-rw-r--r--Lib/calendar.py2
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):