]> granicus.if.org Git - python/commitdiff
Modernize the super() call in ABCMeta.__new__() -- I had messed with
authorGuido van Rossum <guido@python.org>
Thu, 14 Jun 2007 03:27:55 +0000 (03:27 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 14 Jun 2007 03:27:55 +0000 (03:27 +0000)
it when I thought something was broken, and forgotten to restore it
before checking in (maybe I did a svn revert which had the wrong effect?).

Lib/abc.py

index ca6be96496c58727c4eb2f2102c395c8835c3cd5..ae5113a204d463f4857a81578c63bede5f700c51 100644 (file)
@@ -93,7 +93,7 @@ class ABCMeta(type):
 
     def __new__(mcls, name, bases, namespace):
         bases = _fix_bases(bases)
-        cls = super(ABCMeta, mcls).__new__(mcls, name, bases, namespace)
+        cls = super().__new__(mcls, name, bases, namespace)
         # Compute set of abstract method names
         abstracts = {name
                      for name, value in namespace.items()