summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-11-15 19:29:33 (GMT)
committerGuido van Rossum <guido@python.org>1999-11-15 19:29:33 (GMT)
commitba98a42a0f08ada3dc311536815136d7fd960d15 (patch)
treee78dcf0cd0c4ad7a8f8799d6c5655e7b2d111c0a /Python
parent55e93964e6a4f4ab72a1856353a28c6e7ed430b6 (diff)
downloadcpython-ba98a42a0f08ada3dc311536815136d7fd960d15.zip
cpython-ba98a42a0f08ada3dc311536815136d7fd960d15.tar.gz
cpython-ba98a42a0f08ada3dc311536815136d7fd960d15.tar.bz2
Change the last PyErr_Format %s format to %.400s.
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index fe2e0a2..1770dc8 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -2386,7 +2386,7 @@ call_builtin(func, arg, kw)
Py_DECREF(call);
return res;
}
- PyErr_Format(PyExc_TypeError, "call of non-function (type %s)",
+ PyErr_Format(PyExc_TypeError, "call of non-function (type %.400s)",
func->ob_type->tp_name);
return NULL;
}