mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
handle dict subclasses gracefully in PyArg_ValidateKeywordArguments
This commit is contained in:
parent
12ae290bf3
commit
f609654b0e
4 changed files with 14 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue