From: Neal Norwitz Date: Sun, 29 Jun 2003 04:16:49 +0000 (+0000) Subject: use == like all the other conditionals X-Git-Tag: v2.3c1~268 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77290f25f3ae79608ad39bb32fdacaa3dac15b7c;p=python use == like all the other conditionals --- 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'])