Update of /cvsroot/python/python/nondist/sandbox/datetime In directory usw-pr-cvs1:/tmp/cvs-serv18115 Modified Files: datetime.py Log Message: _ord2ymd(): Strengthened a crucial assertion. Index: datetime.py =================================================================== RCS file: /cvsroot/python/python/nondist/sandbox/datetime/datetime.py,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** datetime.py 5 Mar 2002 08:30:31 -0000 1.49 --- datetime.py 5 Mar 2002 08:39:13 -0000 1.50 *************** *** 138,143 **** month -= 1 preceding -= _DAYS_IN_MONTH[month] + (month == 2 and leapyear) - assert 0 <= preceding <= n n -= preceding # Now the year and month are correct, and n is the offset from the --- 138,143 ---- month -= 1 preceding -= _DAYS_IN_MONTH[month] + (month == 2 and leapyear) n -= preceding + assert 0 <= n < _days_in_month(month, year) # Now the year and month are correct, and n is the offset from the
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4