summaryrefslogtreecommitdiff
path: root/Lib/ipaddress.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-11-09 15:56:33 -0800
committerRaymond Hettinger <python@rcn.com>2014-11-09 15:56:33 -0800
commitdf1b69944796caa6854049caf624d32c408c27d5 (patch)
tree655332d48c8fd87bbc06e5e624238342c4ebdb94 /Lib/ipaddress.py
parentbf764a1912b084e5fc9acd6cb160e66060bc368a (diff)
downloadcpython-git-df1b69944796caa6854049caf624d32c408c27d5.tar.gz
Issue #22823: Use set literals instead of creating a set from a list
Diffstat (limited to 'Lib/ipaddress.py')
-rw-r--r--Lib/ipaddress.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ipaddress.py b/Lib/ipaddress.py
index ced9e7953b..d15a1d923f 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