From 77290f25f3ae79608ad39bb32fdacaa3dac15b7c Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 29 Jun 2003 04:16:49 +0000 Subject: [PATCH] use == like all the other conditionals --- Lib/_strptime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/_strptime.py b/Lib/_strptime.py index f32acc0e03f..dcc447be5f9 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'])