diff options
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/object.c b/Objects/object.c index ab10e3e..265ab9b 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -236,7 +236,7 @@ PyObject_Repr(v) return NULL; if (!PyString_Check(res)) { PyErr_Format(PyExc_TypeError, - "__repr__ returned non-string (type %s)", + "__repr__ returned non-string (type %.200s)", res->ob_type->tp_name); Py_DECREF(res); return NULL; @@ -273,7 +273,7 @@ PyObject_Str(v) return NULL; if (!PyString_Check(res)) { PyErr_Format(PyExc_TypeError, - "__str__ returned non-string (type %s)", + "__str__ returned non-string (type %.200s)", res->ob_type->tp_name); Py_DECREF(res); return NULL; |