[Python-checkins] r43558 - python/trunk/Lib/calendar.py
walter.doerwald
python-checkins at python.org
Mon Apr 3 00:11:10 CEST 2006
Author: walter.doerwald
Date: Mon Apr 3 00:11:10 2006
New Revision: 43558
Modified:
python/trunk/Lib/calendar.py
Log:
Always use firstweekday module 7.
Modified: python/trunk/Lib/calendar.py
==============================================================================
--- python/trunk/Lib/calendar.py (original)
+++ python/trunk/Lib/calendar.py Mon Apr 3 00:11:10 2006
@@ -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):
More information about the Python-checkins
mailing list