From bd9848d02fa47c4e21c99b8afdcd35d28c3f309b Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Wed, 12 Jul 2000 02:58:28 +0000 Subject: [PATCH] Fix typo in error message --- Objects/stringobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 246e08061b..f4b90e8637 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -176,7 +176,7 @@ PyObject *PyString_Decode(const char *s, } if (!PyString_Check(str)) { PyErr_Format(PyExc_TypeError, - "decoder did not return an string object (type=%.400s)", + "decoder did not return a string object (type=%.400s)", str->ob_type->tp_name); Py_DECREF(str); goto onError; -- 2.40.0