mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
merge
This commit is contained in:
commit
aa23fa2e21
1 changed files with 1 additions and 1 deletions
|
@ -2023,7 +2023,7 @@ defdict_init(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
newdefault = PyTuple_GET_ITEM(args, 0);
|
||||
if (!PyCallable_Check(newdefault) && newdefault != Py_None) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"first argument must be callable");
|
||||
"first argument must be callable or None");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue