From: Brett Cannon Date: Mon, 29 Aug 2005 18:26:48 +0000 (+0000) Subject: Fix logic error introduced in last commit. X-Git-Tag: v2.4.2c1~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e055743dd3bb7f74542dc4aff41fec73f953a9db;p=thirdparty%2FPython%2Fcpython.git Fix logic error introduced in last commit. --- diff --git a/Lib/_strptime.py b/Lib/_strptime.py index aa02ba12c831..f8dbdd5679b1 100644 --- a/Lib/_strptime.py +++ b/Lib/_strptime.py @@ -149,9 +149,9 @@ class LocaleTime(object): 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]