Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77290f2

Browse files
committed
use == like all the other conditionals
1 parent 732911f commit 77290f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/_strptime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def strptime(data_string, format="%a %b %d %H:%M:%S %Y"):
461461
month = _insensitiveindex(locale_time.a_month, found_dict['b'])
462462
elif group_key == 'd':
463463
day = int(found_dict['d'])
464-
elif group_key is 'H':
464+
elif group_key == 'H':
465465
hour = int(found_dict['H'])
466466
elif group_key == 'I':
467467
hour = int(found_dict['I'])

0 commit comments

Comments
 (0)