bpo-41065: Use zip-strict in zoneinfo (GH-21031)

This commit is contained in:
Ram Rachum 2020-06-23 17:21:26 +03:00 committed by GitHub
parent 30a89338eb
commit bc43f6e212
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View 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