From f609654b0e36796275b7c9f822349e89fe9b4f2d Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 17 Nov 2010 22:33:12 +0000 Subject: handle dict subclasses gracefully in PyArg_ValidateKeywordArguments --- Python/getargs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/getargs.c') diff --git a/Python/getargs.c b/Python/getargs.c index abf55ce041..cf9869965c 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -1394,7 +1394,7 @@ _PyArg_VaParseTupleAndKeywords_SizeT(PyObject *args, int PyArg_ValidateKeywordArguments(PyObject *kwargs) { - if (!PyDict_CheckExact(kwargs)) { + if (!PyDict_Check(kwargs)) { PyErr_BadInternalCall(); return 0; } -- cgit v1.2.1