]> granicus.if.org Git - python/commitdiff
Always use firstweekday module 7.
authorWalter Dörwald <walter@livinglogic.de>
Sun, 2 Apr 2006 22:11:10 +0000 (22:11 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Sun, 2 Apr 2006 22:11:10 +0000 (22:11 +0000)
Lib/calendar.py

index 41537ba7a689dea09c2884b2cbaf7399a5d13ade..1a4dbba536f18758037044e83fa5f9d3d4070075 100644 (file)
@@ -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):