diff options
author | Georg Brandl <georg@python.org> | 2007-01-21 10:28:43 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-01-21 10:28:43 (GMT) |
commit | b84c13792db49abdfac97663badfeda0bba11279 (patch) | |
tree | 9a6099e4f7800a7a2cbaf4218c3039939263bf40 /Modules/_randommodule.c | |
parent | aef4c6bc00f1b49b4a92b362ef1b60e7c5af5e86 (diff) | |
download | cpython-b84c13792db49abdfac97663badfeda0bba11279.zip cpython-b84c13792db49abdfac97663badfeda0bba11279.tar.gz cpython-b84c13792db49abdfac97663badfeda0bba11279.tar.bz2 |
Bug #1486663: don't reject keyword arguments for subclasses of builtin
types.
Diffstat (limited to 'Modules/_randommodule.c')
-rw-r--r-- | Modules/_randommodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ random_new(PyTypeObject *type, PyObject *args, PyObject *kwds) 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); |