diff options
author | Raymond Hettinger <python@rcn.com> | 2014-11-09 23:56:33 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-11-09 23:56:33 (GMT) |
commit | df1b69944796caa6854049caf624d32c408c27d5 (patch) | |
tree | 655332d48c8fd87bbc06e5e624238342c4ebdb94 /Lib/ipaddress.py | |
parent | bf764a1912b084e5fc9acd6cb160e66060bc368a (diff) | |
download | cpython-df1b69944796caa6854049caf624d32c408c27d5.zip cpython-df1b69944796caa6854049caf624d32c408c27d5.tar.gz cpython-df1b69944796caa6854049caf624d32c408c27d5.tar.bz2 |
Issue #22823: Use set literals instead of creating a set from a list
Diffstat (limited to 'Lib/ipaddress.py')
-rw-r--r-- | Lib/ipaddress.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ipaddress.py b/Lib/ipaddress.py index ced9e79..d15a1d9 100644 --- a/Lib/ipaddress.py +++ b/Lib/ipaddress.py @@ -1088,7 +1088,7 @@ class _BaseV4: _DECIMAL_DIGITS = frozenset('0123456789') # the valid octets for host and netmasks. only useful for IPv4. - _valid_mask_octets = frozenset((255, 254, 252, 248, 240, 224, 192, 128, 0)) + _valid_mask_octets = frozenset({255, 254, 252, 248, 240, 224, 192, 128, 0}) _max_prefixlen = IPV4LENGTH # There are only a handful of valid v4 netmasks, so we cache them all |