Kaydet (Commit) 6e372d14 authored tarafından Brett Cannon's avatar Brett Cannon

fix bug where str.find() was being misused where __contains__ should have been

used.
üst 0738206e
......@@ -148,7 +148,7 @@ class LocaleTime(object):
if old:
current_format = current_format.replace(old, new)
time_tuple = time.struct_time((1999,1,3,1,1,1,6,3,0))
if time.strftime(directive, time_tuple).find('00'):
if '00' in time.strftime(directive, time_tuple):
U_W = '%U'
else:
U_W = '%W'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment