diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-15 12:02:15 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-15 12:02:15 (GMT) |
| commit | 56abe39052a68265cf8328bb49f412a42bd53a74 (patch) | |
| tree | c56b8d615bfcca592c497280037450eacc93d2f0 /Modules | |
| parent | 85c3033670d493d17e633261793e83226a6a0f61 (diff) | |
| parent | 3cd30c2ceeaeabe0486a2467fd11cdc008bf6f67 (diff) | |
| download | cpython-56abe39052a68265cf8328bb49f412a42bd53a74.zip cpython-56abe39052a68265cf8328bb49f412a42bd53a74.tar.gz cpython-56abe39052a68265cf8328bb49f412a42bd53a74.tar.bz2 | |
Merge heads
Diffstat (limited to 'Modules')
| -rw-r--r-- | Modules/binascii.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c index 86b63bb..4e6953b 100644 --- a/Modules/binascii.c +++ b/Modules/binascii.c @@ -228,13 +228,13 @@ ascii_buffer_converter(PyObject *arg, Py_buffer *buf) if (PyObject_GetBuffer(arg, buf, PyBUF_SIMPLE) != 0) { PyErr_Format(PyExc_TypeError, "argument should be bytes, buffer or ASCII string, " - "not %R", Py_TYPE(arg)); + "not '%.100s'", Py_TYPE(arg)->tp_name); return 0; } if (!PyBuffer_IsContiguous(buf, 'C')) { PyErr_Format(PyExc_TypeError, "argument should be a contiguous buffer, " - "not %R", Py_TYPE(arg)); + "not '%.100s'", Py_TYPE(arg)->tp_name); PyBuffer_Release(buf); return 0; } |
