We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50ef8a8 commit 3cd30c2Copy full SHA for 3cd30c2
1 file changed
Modules/binascii.c
@@ -228,13 +228,13 @@ ascii_buffer_converter(PyObject *arg, Py_buffer *buf)
228
if (PyObject_GetBuffer(arg, buf, PyBUF_SIMPLE) != 0) {
229
PyErr_Format(PyExc_TypeError,
230
"argument should be bytes, buffer or ASCII string, "
231
- "not %R", Py_TYPE(arg));
+ "not '%.100s'", Py_TYPE(arg)->tp_name);
232
return 0;
233
}
234
if (!PyBuffer_IsContiguous(buf, 'C')) {
235
236
"argument should be a contiguous buffer, "
237
238
PyBuffer_Release(buf);
239
240
0 commit comments