summaryrefslogtreecommitdiff
path: root/Lib/_strptime.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-06-29 04:16:49 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2003-06-29 04:16:49 +0000
commit6299e8f0984171c1b60acffbec79bc1e176c2c80 (patch)
tree1f52e6dfbbb5af40244ddf0e9f581feaeefbbd02 /Lib/_strptime.py
parentb85844f6d047264fe05836ee65449c5d440b99a5 (diff)
downloadcpython-6299e8f0984171c1b60acffbec79bc1e176c2c80.tar.gz
use == like all the other conditionals
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 f32acc0e03..dcc447be5f 100644
--- a/Lib/_strptime.py
+++ b/Lib/_strptime.py
@@ -461,7 +461,7 @@ def strptime(data_string, format="%a %b %d %H:%M:%S %Y"):
month = _insensitiveindex(locale_time.a_month, found_dict['b'])
elif group_key == 'd':
day = int(found_dict['d'])
- elif group_key is 'H':
+ elif group_key == 'H':
hour = int(found_dict['H'])
elif group_key == 'I':
hour = int(found_dict['I'])