summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-11-17 22:33:12 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-11-17 22:33:12 (GMT)
commitf609654b0e36796275b7c9f822349e89fe9b4f2d (patch)
treebe7d4cf8c94b36c9ea48bebd9589b4ca5e8e0954 /Python
parent12ae290bf32adbc8f4885ec342f5a17a4955fe15 (diff)
downloadcpython-f609654b0e36796275b7c9f822349e89fe9b4f2d.zip
cpython-f609654b0e36796275b7c9f822349e89fe9b4f2d.tar.gz
cpython-f609654b0e36796275b7c9f822349e89fe9b4f2d.tar.bz2
handle dict subclasses gracefully in PyArg_ValidateKeywordArguments
Diffstat (limited to 'Python')
-rw-r--r--Python/getargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index abf55ce..cf98699 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;
}