From: Ezio Melotti Date: Wed, 18 Jan 2012 03:42:39 +0000 (+0200) Subject: #13665: s/string/bytes/ in error message. X-Git-Tag: v3.2.3rc1~164 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acd5f7bcebe9a341cf5d98425f228695dffab8e0;p=thirdparty%2FPython%2Fcpython.git #13665: s/string/bytes/ in error message. --- diff --git a/Modules/_ctypes/cfield.c b/Modules/_ctypes/cfield.c index ccaa3c9d703e..e2d1e4b8dcb2 100644 --- a/Modules/_ctypes/cfield.c +++ b/Modules/_ctypes/cfield.c @@ -1372,7 +1372,7 @@ z_set(void *ptr, PyObject *value, Py_ssize_t size) _RET(value); } PyErr_Format(PyExc_TypeError, - "string or integer address expected instead of %s instance", + "bytes or integer address expected instead of %s instance", value->ob_type->tp_name); return NULL; }