summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2013-02-19 12:44:49 (GMT)
committerStefan Krah <skrah@bytereef.org>2013-02-19 12:44:49 (GMT)
commit674a42b1141c2caa6e439a0cc47b07f620520ca4 (patch)
treee6fd6e694680bb7fa1526245fb2d87d4d3859b69 /Objects
parent702a5dc1ed7907c4017106388329db73c038345c (diff)
downloadcpython-674a42b1141c2caa6e439a0cc47b07f620520ca4.zip
cpython-674a42b1141c2caa6e439a0cc47b07f620520ca4.tar.gz
cpython-674a42b1141c2caa6e439a0cc47b07f620520ca4.tar.bz2
Fix error messages.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/memoryobject.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c
index dd6fe82..abd069b 100644
--- a/Objects/memoryobject.c
+++ b/Objects/memoryobject.c
@@ -307,7 +307,8 @@ equiv_structure(const Py_buffer *dest, const Py_buffer *src)
if (!equiv_format(dest, src) ||
!equiv_shape(dest, src)) {
PyErr_SetString(PyExc_ValueError,
- "ndarray assignment: lvalue and rvalue have different structures");
+ "memoryview assignment: lvalue and rvalue have different "
+ "structures");
return 0;
}
@@ -1433,7 +1434,7 @@ memory_getbuf(PyMemoryViewObject *self, Py_buffer *view, int flags)
/* PyBUF_SIMPLE|PyBUF_FORMAT and PyBUF_WRITABLE|PyBUF_FORMAT do
not make sense. */
PyErr_Format(PyExc_BufferError,
- "ndarray: cannot cast to unsigned bytes if the format flag "
+ "memoryview: cannot cast to unsigned bytes if the format flag "
"is present");
return -1;
}