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

used.
This commit is contained in:
Brett Cannon 2005-08-27 19:25:59 +00:00
parent 0738206e79
commit 6e372d1422
1 changed files with 1 additions and 1 deletions

View File

@ -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'