From: Benjamin Peterson <benjamin@python.org> Date: Sat, 27 Dec 2008 02:58:34 +0000 (+0000) Subject: string -> bytes in error message #4745 X-Git-Tag: v3.1a1~669 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81d90a220f2cea407e261a3c884d388a084d2d1e;p=python string -> bytes in error message #4745 --- diff --git a/Python/getargs.c b/Python/getargs.c index 9b1207f04e..3a5ef8d959 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -1392,7 +1392,7 @@ getbuffer(PyObject *arg, Py_buffer *view, char **errmsg) Py_ssize_t count; PyBufferProcs *pb = arg->ob_type->tp_as_buffer; if (pb == NULL) { - *errmsg = "string or buffer"; + *errmsg = "bytes or buffer"; return -1; } if (pb->bf_getbuffer) {