]> granicus.if.org Git - python/commitdiff
Fix a couple of names in error messages that were wrong
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 20 Jul 2008 19:35:23 +0000 (19:35 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 20 Jul 2008 19:35:23 +0000 (19:35 +0000)
Objects/bytearrayobject.c

index e31b7d5fdf3db29191acdf2ae35b025fae192a4a..bc02106e786a7d41b091d3889c47921a52733283 100644 (file)
@@ -501,7 +501,7 @@ bytes_setslice(PyByteArrayObject *self, Py_ssize_t lo, Py_ssize_t hi,
     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 @@ bytes_init(PyByteArrayObject *self, PyObject *args, PyObject *kwds)
     }
 
     /* Parse arguments */
-    if (!PyArg_ParseTupleAndKeywords(args, kwds, "|Oss:bytes", kwlist,
+    if (!PyArg_ParseTupleAndKeywords(args, kwds, "|Oss:bytearray", kwlist,
                                      &arg, &encoding, &errors))
         return -1;