mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Bug #1486663: don't reject keyword arguments for subclasses of builtin
types.
This commit is contained in:
parent
aef4c6bc00
commit
b84c13792d
9 changed files with 62 additions and 16 deletions
|
@ -95,7 +95,7 @@ deque_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
|||
dequeobject *deque;
|
||||
block *b;
|
||||
|
||||
if (!_PyArg_NoKeywords("deque()", kwds))
|
||||
if (type == &deque_type && !_PyArg_NoKeywords("deque()", kwds))
|
||||
return NULL;
|
||||
|
||||
/* create dequeobject structure */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue