From 81d90a220f2cea407e261a3c884d388a084d2d1e Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 27 Dec 2008 02:58:34 +0000 Subject: string -> bytes in error message #4745 --- Python/getargs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/getargs.c b/Python/getargs.c index 9b1207f..3a5ef8d 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) { -- cgit v0.12