[Python-checkins] cpython: #14814: Remove 2.x's new-style classes syntax from ipaddress

hynek.schlawack python-checkins at python.org
Fri Jun 1 11:54:12 CEST 2012


http://hg.python.org/cpython/rev/0eb63de72e96
changeset:   77281:0eb63de72e96
user:        Hynek Schlawack <hs at ox.cx>
date:        Fri Jun 01 11:48:32 2012 +0200
summary:
  #14814: Remove 2.x's new-style classes syntax from ipaddress

files:
  Lib/ipaddress.py |  6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Lib/ipaddress.py b/Lib/ipaddress.py
--- a/Lib/ipaddress.py
+++ b/Lib/ipaddress.py
@@ -400,7 +400,7 @@
     return NotImplemented
 
 
-class _IPAddressBase(object):
+class _IPAddressBase:
 
     """The mother class."""
 
@@ -975,7 +975,7 @@
         return t.__class__('%s/%d' % (str(t.network_address), t.prefixlen))
 
 
-class _BaseV4(object):
+class _BaseV4:
 
     """Base IPv4 object.
 
@@ -1511,7 +1511,7 @@
         return '%s/%s' % (str(self.network_address), str(self.hostmask))
 
 
-class _BaseV6(object):
+class _BaseV6:
 
     """Base IPv6 object.
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list