Skip to content

Commit

Permalink
use == like all the other conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
nnorwitz committed Jun 29, 2003
1 parent 732911f commit 77290f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/_strptime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit 77290f2

Please sign in to comment.