From: Guido van Rossum Date: Thu, 14 Jun 2007 03:27:55 +0000 (+0000) Subject: Modernize the super() call in ABCMeta.__new__() -- I had messed with X-Git-Tag: v3.0a1~758 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb5f590323f49c57c5374f2ba7683832e6f1b4ef;p=python Modernize the super() call in ABCMeta.__new__() -- I had messed with 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?). --- diff --git a/Lib/abc.py b/Lib/abc.py index ca6be96496..ae5113a204 100644 --- a/Lib/abc.py +++ b/Lib/abc.py @@ -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()