[Python-checkins] r65158 - python/trunk/Objects/bytearrayobject.c

neal.norwitz python-checkins at python.org
Sun Jul 20 21:35:23 CEST 2008


Author: neal.norwitz
Date: Sun Jul 20 21:35:23 2008
New Revision: 65158

Log:
Fix a couple of names in error messages that were wrong

Modified:
   python/trunk/Objects/bytearrayobject.c

Modified: python/trunk/Objects/bytearrayobject.c
==============================================================================
--- python/trunk/Objects/bytearrayobject.c	(original)
+++ python/trunk/Objects/bytearrayobject.c	Sun Jul 20 21:35:23 2008
@@ -501,7 +501,7 @@
     else {
             if (_getbuffer(values, &vbytes) < 0) {
                     PyErr_Format(PyExc_TypeError,
-                                 "can't set bytes slice from %.100s",
+                                 "can't set bytearray slice from %.100s",
                                  Py_TYPE(values)->tp_name);
                     return -1;
             }
@@ -753,7 +753,7 @@
     }
 
     /* Parse arguments */
-    if (!PyArg_ParseTupleAndKeywords(args, kwds, "|Oss:bytes", kwlist,
+    if (!PyArg_ParseTupleAndKeywords(args, kwds, "|Oss:bytearray", kwlist,
                                      &arg, &encoding, &errors))
         return -1;
 


More information about the Python-checkins mailing list