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 arun-mani-j committed Jul 21, 2020
1 parent 92276ec commit c56ed9e
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 c56ed9e

Please sign in to comment.