There was an error while loading. Please reload this page.
1 parent 732911f commit 77290f2Copy full SHA for 77290f2
1 file changed
Lib/_strptime.py
@@ -461,7 +461,7 @@ def strptime(data_string, format="%a %b %d %H:%M:%S %Y"):
461
month = _insensitiveindex(locale_time.a_month, found_dict['b'])
462
elif group_key == 'd':
463
day = int(found_dict['d'])
464
- elif group_key is 'H':
+ elif group_key == 'H':
465
hour = int(found_dict['H'])
466
elif group_key == 'I':
467
hour = int(found_dict['I'])
0 commit comments