diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-06-29 04:16:49 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-06-29 04:16:49 (GMT) |
commit | 77290f25f3ae79608ad39bb32fdacaa3dac15b7c (patch) | |
tree | ab321830960349dea425828451b50ae68d708567 /Lib/_strptime.py | |
parent | 732911fd1e33244fcb7d946c3936dfbaff83980d (diff) | |
download | cpython-77290f25f3ae79608ad39bb32fdacaa3dac15b7c.zip cpython-77290f25f3ae79608ad39bb32fdacaa3dac15b7c.tar.gz cpython-77290f25f3ae79608ad39bb32fdacaa3dac15b7c.tar.bz2 |
use == like all the other conditionals
Diffstat (limited to 'Lib/_strptime.py')
-rw-r--r-- | Lib/_strptime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_strptime.py b/Lib/_strptime.py index f32acc0..dcc447b 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']) |