diff Objects/bytesobject.c @ 46805:4c5ee1b38045 legacy-trunk

Backport fast alternate io.BytesIO implementation. Merged r62778, r62779, r62802, r62806, r62807, r62808, r62809, r62844, r62846, r62952, r62956.
author Alexandre Vassalotti <alexandre@peadrop.com>
date Fri, 09 May 2008 21:49:43 +0000
parents 24205b1f954e
children 04bd3690fb1f
line wrap: on
line diff
--- a/Objects/bytesobject.c	Fri May 09 21:30:36 2008 +0000
+++ b/Objects/bytesobject.c	Fri May 09 21:49:43 2008 +0000
@@ -315,8 +315,8 @@
     Py_buffer vo;
 
     if (_getbuffer(other, &vo) < 0) {
-        PyErr_Format(PyExc_TypeError, "can't concat bytes to %.100s",
-                     Py_TYPE(self)->tp_name);
+        PyErr_Format(PyExc_TypeError, "can't concat %.100s to %.100s",
+                     Py_TYPE(other)->tp_name, Py_TYPE(self)->tp_name);
         return NULL;
     }