mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Backport of _abccoll.py by Benjamin Arangueren, issue 1383.
With some changes of my own thrown in (e.g. backport of r58107).
This commit is contained in:
parent
cc7f26bf20
commit
64c06e327d
13 changed files with 822 additions and 51 deletions
|
|
@ -69,7 +69,7 @@ class _Abstract(object):
|
|||
if (args or kwds) and cls.__init__ is object.__init__:
|
||||
raise TypeError("Can't pass arguments to __new__ "
|
||||
"without overriding __init__")
|
||||
return object.__new__(cls)
|
||||
return super(_Abstract, cls).__new__(cls)
|
||||
|
||||
@classmethod
|
||||
def __subclasshook__(cls, subclass):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue