Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb5f590

Browse files
committed
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?).
1 parent 2d28f59 commit bb5f590

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/abc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class ABCMeta(type):
9393

9494
def __new__(mcls, name, bases, namespace):
9595
bases = _fix_bases(bases)
96-
cls = super(ABCMeta, mcls).__new__(mcls, name, bases, namespace)
96+
cls = super().__new__(mcls, name, bases, namespace)
9797
# Compute set of abstract method names
9898
abstracts = {name
9999
for name, value in namespace.items()

0 commit comments

Comments
 (0)