diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-11-17 22:33:12 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-11-17 22:33:12 (GMT) |
commit | f609654b0e36796275b7c9f822349e89fe9b4f2d (patch) | |
tree | be7d4cf8c94b36c9ea48bebd9589b4ca5e8e0954 /Python | |
parent | 12ae290bf32adbc8f4885ec342f5a17a4955fe15 (diff) | |
download | cpython-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.c | 2 |
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; } |