commit | b84c13792db49abdfac97663badfeda0bba11279 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sun Jan 21 10:28:43 2007 +0000 |
committer | Georg Brandl <georg@python.org> | Sun Jan 21 10:28:43 2007 +0000 |
tree | 9a6099e4f7800a7a2cbaf4218c3039939263bf40 | |
parent | aef4c6bc00f1b49b4a92b362ef1b60e7c5af5e86 [diff] [blame] |
Bug #1486663: don't reject keyword arguments for subclasses of builtin types.
diff --git a/Modules/collectionsmodule.c b/Modules/collectionsmodule.c index a0570cd..a4cdcfa 100644 --- a/Modules/collectionsmodule.c +++ b/Modules/collectionsmodule.c
@@ -95,7 +95,7 @@ dequeobject *deque; block *b; - if (!_PyArg_NoKeywords("deque()", kwds)) + if (type == &deque_type && !_PyArg_NoKeywords("deque()", kwds)) return NULL; /* create dequeobject structure */