python/dist/src/Lib _strptime.py,1.36,1.37
![](https://secure.gravatar.com/avatar/b929d7a47a24393ffa010de48f10e27a.jpg?s=120&d=mm&r=g)
Update of /cvsroot/python/python/dist/src/Lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25257/Lib Modified Files: _strptime.py Log Message: Fix comments. Index: _strptime.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/_strptime.py,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- _strptime.py 18 Oct 2004 01:37:57 -0000 1.36 +++ _strptime.py 18 Oct 2004 01:47:46 -0000 1.37 @@ -298,9 +298,12 @@ month = day = 1 hour = minute = second = 0 tz = -1 + # Default to -1 to signify that values not known; not critical to have, + # though week_of_year = -1 week_of_year_start = -1 - # weekday and julian defaulted to -1 so as to signal need to calculate values + # weekday and julian defaulted to -1 so as to signal need to calculate + # values weekday = julian = -1 found_dict = found.groupdict() for group_key in found_dict.iterkeys(): @@ -388,7 +391,6 @@ # If we know the week of the year and what day of that week, we can figure # out the Julian day of the year # Calculations below assume 0 is a Monday - # XXX only works for W if julian == -1 and week_of_year != -1 and weekday != -1 and year != -1: # Adjust for U directive so that calculations are not dependent on # directive used to figure out week of year
participants (1)
-
bcannon@users.sourceforge.net