[Python-checkins] python/dist/src/Lib _strptime.py, 1.38.2.1, 1.38.2.2

bcannon@users.sourceforge.net bcannon at users.sourceforge.net
Mon Aug 29 20:26:59 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5944/Lib

Modified Files:
      Tag: release24-maint
	_strptime.py 
Log Message:
Fix logic error introduced in last commit.


Index: _strptime.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/_strptime.py,v
retrieving revision 1.38.2.1
retrieving revision 1.38.2.2
diff -u -d -r1.38.2.1 -r1.38.2.2
--- _strptime.py	27 Aug 2005 19:29:21 -0000	1.38.2.1
+++ _strptime.py	29 Aug 2005 18:26:48 -0000	1.38.2.2
@@ -149,9 +149,9 @@
                     current_format = current_format.replace(old, new)
             time_tuple = time.struct_time((1999,1,3,1,1,1,6,3,0))
             if '00' in time.strftime(directive, time_tuple):
-                U_W = '%U'
-            else:
                 U_W = '%W'
+            else:
+                U_W = '%U'
             date_time[offset] = current_format.replace('11', U_W)
         self.LC_date_time = date_time[0]
         self.LC_date = date_time[1]



More information about the Python-checkins mailing list