]> granicus.if.org Git - python/commitdiff
use == like all the other conditionals
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 29 Jun 2003 04:16:49 +0000 (04:16 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 29 Jun 2003 04:16:49 +0000 (04:16 +0000)
Lib/_strptime.py

index f32acc0e03fc06c3c017e860d8503e953a793dc7..dcc447be5f9aaa7932c930665b340efec420d49f 100644 (file)
@@ -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'])