diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-07-20 19:35:23 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-07-20 19:35:23 (GMT) |
commit | c86b54cb0364fcfccb3be731d3cf223d89b0ebdf (patch) | |
tree | 06cb36f9259938d0d85a95895fdf94f7b9a6dc8f /Objects | |
parent | e64f7385073028f4e916c4eb12342ecb91c50884 (diff) | |
download | cpython-c86b54cb0364fcfccb3be731d3cf223d89b0ebdf.zip cpython-c86b54cb0364fcfccb3be731d3cf223d89b0ebdf.tar.gz cpython-c86b54cb0364fcfccb3be731d3cf223d89b0ebdf.tar.bz2 |
Fix a couple of names in error messages that were wrong
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/bytearrayobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index e31b7d5..bc02106 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -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; |