summaryrefslogtreecommitdiff
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-03-19 19:47:02 +0200
committerGitHub <noreply@github.com>2017-03-19 19:47:02 +0200
commit6b5a9ec4788770c652bac3bf5d5a0a3b710b82ae (patch)
treec329a3e6c42184db981af527867990e19996a0f0 /Objects/bytesobject.c
parent004e03fb0c2febe2ec8afbd28ffcb3e980c63228 (diff)
downloadcpython-git-6b5a9ec4788770c652bac3bf5d5a0a3b710b82ae.tar.gz
bpo-29116: Fix error messages for concatenating bytes and bytearray with unsupported type. (#709)
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 1050a93e6e..bde7948c10 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -1438,7 +1438,7 @@ bytes_concat(PyObject *a, PyObject *b)
if (PyObject_GetBuffer(a, &va, PyBUF_SIMPLE) != 0 ||
PyObject_GetBuffer(b, &vb, PyBUF_SIMPLE) != 0) {
PyErr_Format(PyExc_TypeError, "can't concat %.100s to %.100s",
- Py_TYPE(a)->tp_name, Py_TYPE(b)->tp_name);
+ Py_TYPE(b)->tp_name, Py_TYPE(a)->tp_name);
goto done;
}