]> granicus.if.org Git - python/commitdiff
It helps when doing checks if something is in a tuple of strings that if you
authorBrett Cannon <bcannon@gmail.com>
Wed, 14 Jul 2004 00:43:51 +0000 (00:43 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 14 Jul 2004 00:43:51 +0000 (00:43 +0000)
put everything in the tuple in caps to use str.upper() instead of str.lower().

Lib/test/test_strptime.py

index 4333b1b63a76d136a4b428702f8c40b6e0263f5d..5aaa9a70e43a681f16339b27c3b30dc5d9da4f6e 100644 (file)
@@ -280,7 +280,7 @@ class StrptimeTests(unittest.TestCase):
         if sys.platform == "mac":
             return #MacOS9 has severely broken timezone support.
         tz_name = time.tzname[0]
-        if tz_name.lower() in ("UTC", "GMT"):
+        if tz_name.upper() in ("UTC", "GMT"):
             return
         try:
             original_tzname = time.tzname