diff options
author | Hynek Schlawack <hs@ox.cx> | 2012-06-01 09:48:32 (GMT) |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2012-06-01 09:48:32 (GMT) |
commit | c4b78a3e15dcc627a06ba3a0fc92358aade2b7ea (patch) | |
tree | 351f48c7f6abe2cd037d9a195b92097c71bfa001 /Lib | |
parent | 67ee1d05dd3c524827bdaa62ff74f396af6b5e19 (diff) | |
download | cpython-c4b78a3e15dcc627a06ba3a0fc92358aade2b7ea.zip cpython-c4b78a3e15dcc627a06ba3a0fc92358aade2b7ea.tar.gz cpython-c4b78a3e15dcc627a06ba3a0fc92358aade2b7ea.tar.bz2 |
#14814: Remove 2.x's new-style classes syntax from ipaddress
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ipaddress.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/ipaddress.py b/Lib/ipaddress.py index 90c69a4..7df9f20 100644 --- a/Lib/ipaddress.py +++ b/Lib/ipaddress.py @@ -400,7 +400,7 @@ def get_mixed_type_key(obj): return NotImplemented -class _IPAddressBase(object): +class _IPAddressBase: """The mother class.""" @@ -975,7 +975,7 @@ class _BaseNetwork(_IPAddressBase): return t.__class__('%s/%d' % (str(t.network_address), t.prefixlen)) -class _BaseV4(object): +class _BaseV4: """Base IPv4 object. @@ -1511,7 +1511,7 @@ class IPv4Network(_BaseV4, _BaseNetwork): return '%s/%s' % (str(self.network_address), str(self.hostmask)) -class _BaseV6(object): +class _BaseV6: """Base IPv6 object. |