mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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):
|
||||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue