summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-07-20 03:10:48 -0400
committerRaymond Hettinger <python@rcn.com>2015-07-20 03:10:48 -0400
commit043e8008603b168812bb6973f870fdd2132304b7 (patch)
tree49b779471c7acf05a05725be683ad484f0490d78 /Modules
parent485407ce1e4dc3b2005bc1c72ce6020c28f90030 (diff)
parent239aba7874d83eee798b19fe3fc11880516fb356 (diff)
downloadcpython-git-043e8008603b168812bb6973f870fdd2132304b7.tar.gz
merge
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_collectionsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c
index c1fd8b9d9b..830c5b83eb 100644
--- a/Modules/_collectionsmodule.c
+++ b/Modules/_collectionsmodule.c
@@ -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;
}
}