bpo-41065: Use zip-strict in zoneinfo (GH-21031)
This commit is contained in:
parent
30a89338eb
commit
bc43f6e212
|
@ -136,8 +136,7 @@ class _TZifHeader:
|
||||||
]
|
]
|
||||||
|
|
||||||
def __init__(self, *args):
|
def __init__(self, *args):
|
||||||
assert len(self.__slots__) == len(args)
|
for attr, val in zip(self.__slots__, args, strict=True):
|
||||||
for attr, val in zip(self.__slots__, args):
|
|
||||||
setattr(self, attr, val)
|
setattr(self, attr, val)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in New Issue