summaryrefslogtreecommitdiff
path: root/Lib/_strptime.py
diff options
context:
space:
mode:
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'])