]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41065: Use zip-strict in zoneinfo (GH-21031)
authorRam Rachum <ram@rachum.com>
Tue, 23 Jun 2020 14:21:26 +0000 (17:21 +0300)
committerGitHub <noreply@github.com>
Tue, 23 Jun 2020 14:21:26 +0000 (10:21 -0400)
Lib/zoneinfo/_common.py

index 41c898f37e4f85939e5c13affa638ca59563844c..4c24f01bd7b270eac5579680bee572c7b7ef0e88 100644 (file)
@@ -136,8 +136,7 @@ class _TZifHeader:
     ]
 
     def __init__(self, *args):
-        assert len(self.__slots__) == len(args)
-        for attr, val in zip(self.__slots__, args):
+        for attr, val in zip(self.__slots__, args, strict=True):
             setattr(self, attr, val)
 
     @classmethod