summaryrefslogtreecommitdiff
path: root/Lib/_strptime.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2005-08-27 19:25:59 +0000
committerBrett Cannon <bcannon@gmail.com>2005-08-27 19:25:59 +0000
commitd1aea4dae4b8949195950c8d93cf416570de15b6 (patch)
tree76fd99a1d25778bfa941442cc4c8c50067a8ef12 /Lib/_strptime.py
parent7e5d45e245b58bf4cdf56bcb83862fcb10e7933e (diff)
downloadcpython-d1aea4dae4b8949195950c8d93cf416570de15b6.tar.gz
fix bug where str.find() was being misused where __contains__ should have been
used.
Diffstat (limited to 'Lib/_strptime.py')
-rw-r--r--Lib/_strptime.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_strptime.py b/Lib/_strptime.py
index a6b54f3a9d..aa02ba12c8 100644
--- a/Lib/_strptime.py
+++ b/Lib/_strptime.py
@@ -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'