bpo-29116: Fix error messages for concatenating bytes and bytearray with unsupported type. (#709) (#723)
(cherry picked from commit 6b5a9ec4788770c652bac3bf5d5a0a3b710b82ae)
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 30c1a7e..c95a46d 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -1438,7 +1438,7 @@
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;
}