summaryrefslogtreecommitdiff
path: root/Objects/abstract.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-22 01:09:21 +0100
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-22 01:09:21 +0100
commit0a5f65ab0af44aed16da89abb2543e8242f927ea (patch)
treeb40d56e2f762b309dc9da2d00483aebee1d46796 /Objects/abstract.c
parent39bc38c39c5a0947c8c406e86a3e9faad930a133 (diff)
downloadcpython-git-0a5f65ab0af44aed16da89abb2543e8242f927ea.tar.gz
Issue #7330, #10833: Replace %100s by %.100s and %200s by %.200s
I suppose that the author would like to truncate the type name, not get a string of 100/200 characters.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 2f887aa056..11e145f168 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -331,7 +331,7 @@ PyObject_GetBuffer(PyObject *obj, Py_buffer *view, int flags)
{
if (!PyObject_CheckBuffer(obj)) {
PyErr_Format(PyExc_TypeError,
- "'%100s' does not support the buffer interface",
+ "'%.100s' does not support the buffer interface",
Py_TYPE(obj)->tp_name);
return -1;
}