mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
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?).
This commit is contained in:
parent
2d28f59245
commit
bb5f590323
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class ABCMeta(type):
|
||||||
|
|
||||||
def __new__(mcls, name, bases, namespace):
|
def __new__(mcls, name, bases, namespace):
|
||||||
bases = _fix_bases(bases)
|
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
|
# Compute set of abstract method names
|
||||||
abstracts = {name
|
abstracts = {name
|
||||||
for name, value in namespace.items()
|
for name, value in namespace.items()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue