Skip to content

Commit

Permalink
bpo-41065: Use zip-strict in zoneinfo (pythonGH-21031)
Browse files Browse the repository at this point in the history
  • Loading branch information
cool-RR authored and fasihahmad committed Jun 29, 2020
1 parent c46c53c commit 017f89f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Lib/zoneinfo/_common.py
Expand Up @@ -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
Expand Down

0 comments on commit 017f89f

Please sign in to comment.