commit | bc43f6e21244f31d25896875430174cd4ac7604c | [log] [tgz] |
---|---|---|
author | Ram Rachum <ram@rachum.com> | Tue Jun 23 17:21:26 2020 +0300 |
committer | GitHub <noreply@github.com> | Tue Jun 23 10:21:26 2020 -0400 |
tree | d4d5d160810f542fec443b8f39173e57a46cdbad | |
parent | 30a89338eb377df08ea8724809101d14612a32eb [diff] |
bpo-41065: Use zip-strict in zoneinfo (GH-21031)
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 @@ ] 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