diff options
author | Ram Rachum <ram@rachum.com> | 2020-06-23 14:21:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 14:21:26 (GMT) |
commit | bc43f6e21244f31d25896875430174cd4ac7604c (patch) | |
tree | d4d5d160810f542fec443b8f39173e57a46cdbad /Lib/zoneinfo | |
parent | 30a89338eb377df08ea8724809101d14612a32eb (diff) | |
download | cpython-bc43f6e21244f31d25896875430174cd4ac7604c.zip cpython-bc43f6e21244f31d25896875430174cd4ac7604c.tar.gz cpython-bc43f6e21244f31d25896875430174cd4ac7604c.tar.bz2 |
bpo-41065: Use zip-strict in zoneinfo (GH-21031)
Diffstat (limited to 'Lib/zoneinfo')
-rw-r--r-- | Lib/zoneinfo/_common.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/zoneinfo/_common.py b/Lib/zoneinfo/_common.py index 41c898f..4c24f01 100644 --- a/Lib/zoneinfo/_common.py +++ b/Lib/zoneinfo/_common.py @@ -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 |