Commit c86b54cb authored by Neal Norwitz's avatar Neal Norwitz

Fix a couple of names in error messages that were wrong

parent e64f7385
...@@ -501,7 +501,7 @@ bytes_setslice(PyByteArrayObject *self, Py_ssize_t lo, Py_ssize_t hi, ...@@ -501,7 +501,7 @@ bytes_setslice(PyByteArrayObject *self, Py_ssize_t lo, Py_ssize_t hi,
else { else {
if (_getbuffer(values, &vbytes) < 0) { if (_getbuffer(values, &vbytes) < 0) {
PyErr_Format(PyExc_TypeError, PyErr_Format(PyExc_TypeError,
"can't set bytes slice from %.100s", "can't set bytearray slice from %.100s",
Py_TYPE(values)->tp_name); Py_TYPE(values)->tp_name);
return -1; return -1;
} }
...@@ -753,7 +753,7 @@ bytes_init(PyByteArrayObject *self, PyObject *args, PyObject *kwds) ...@@ -753,7 +753,7 @@ bytes_init(PyByteArrayObject *self, PyObject *args, PyObject *kwds)
} }
/* Parse arguments */ /* Parse arguments */
if (!PyArg_ParseTupleAndKeywords(args, kwds, "|Oss:bytes", kwlist, if (!PyArg_ParseTupleAndKeywords(args, kwds, "|Oss:bytearray", kwlist,
&arg, &encoding, &errors)) &arg, &encoding, &errors))
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment