diff options
Diffstat (limited to 'contrib/ipaddr-py/ipaddr.py')
-rw-r--r-- | contrib/ipaddr-py/ipaddr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/ipaddr-py/ipaddr.py b/contrib/ipaddr-py/ipaddr.py index 07fc873fb15..6ebd22a33ce 100644 --- a/contrib/ipaddr-py/ipaddr.py +++ b/contrib/ipaddr-py/ipaddr.py @@ -1222,7 +1222,7 @@ class IPv4Network(_BaseV4, _BaseNet): """ # the valid octets for host and netmasks. only useful for IPv4. - _valid_mask_octets = set((255, 254, 252, 248, 240, 224, 192, 128, 0)) + _valid_mask_octets = {255, 254, 252, 248, 240, 224, 192, 128, 0} def __init__(self, address, strict=False): """Instantiate a new IPv4 network object. @@ -1465,7 +1465,7 @@ class _BaseV6(object): try: # Now, parse the hextets into a 128-bit integer. - ip_int = 0L + ip_int = 0 for i in xrange(parts_hi): ip_int <<= 16 ip_int |= self._parse_hextet(parts[i]) |