[Python-checkins] r43591 - python/trunk/Lib/calendar.py (original) (raw)
walter.doerwald python-checkins at python.org
Mon Apr 3 17:21:59 CEST 2006
- Previous message: [Python-checkins] r43590 - python/trunk/Lib/calendar.py
- Next message: [Python-checkins] r43592 - python/trunk/Lib/calendar.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: walter.doerwald Date: Mon Apr 3 17:21:59 2006 New Revision: 43591
Modified: python/trunk/Lib/calendar.py Log: Always return firstweekday % 7 instead of complaining on setting.
Modified: python/trunk/Lib/calendar.py
--- python/trunk/Lib/calendar.py (original)
+++ python/trunk/Lib/calendar.py Mon Apr 3 17:21:59 2006
@@ -131,11 +131,9 @@
self.firstweekday = firstweekday # 0 = Monday, 6 = Sunday
def getfirstweekday(self):
- return self._firstweekday
+ return self._firstweekday % 7
def setfirstweekday(self, firstweekday):
- if not MONDAY <= firstweekday <= SUNDAY:
- raise IllegalWeekdayError(firstweekday)
self._firstweekday = firstweekday
firstweekday = property(getfirstweekday, setfirstweekday)
- Previous message: [Python-checkins] r43590 - python/trunk/Lib/calendar.py
- Next message: [Python-checkins] r43592 - python/trunk/Lib/calendar.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]