commit | 8e932e7d6886544a1b0f2503382d87e3875eb9fe | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sun Jan 21 10:28:56 2007 +0000 |
committer | Georg Brandl <georg@python.org> | Sun Jan 21 10:28:56 2007 +0000 |
tree | fb068c18fbd6198e68b4ad4b5a0c8c7d1a389845 | |
parent | 9d8ccf7df2f9516ecf8e92dac67c299a930580b6 [diff] [blame] |
Bug #1486663: don't reject keyword arguments for subclasses of builtin types. (backport from rev. 53509)
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index bd1c9d3..591947e 100644 --- a/Modules/_randommodule.c +++ b/Modules/_randommodule.c
@@ -481,7 +481,7 @@ RandomObject *self; PyObject *tmp; - if (!_PyArg_NoKeywords("Random()", kwds)) + if (type == &Random_Type && !_PyArg_NoKeywords("Random()", kwds)) return NULL; self = (RandomObject *)type->tp_alloc(type, 0);