diff options
author | Armin Rigo <arigo@tunes.org> | 2012-10-29 09:29:51 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2012-10-29 09:29:51 +0100 |
commit | b1c4c17d3d8432ccbba983f7cc89bed52573830f (patch) | |
tree | 9bf246795764c1839fd5121b2f375733f484cb6e /c/minibuffer.h | |
parent | 39f3365732e3f14030b7b2422a6e1376ab9c76f8 (diff) | |
download | cffi-b1c4c17d3d8432ccbba983f7cc89bed52573830f.tar.gz |
Giving a TypeError doesn't make much sense here, even though
CPython's buffer type does it.
Diffstat (limited to 'c/minibuffer.h')
-rw-r--r-- | c/minibuffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/minibuffer.h b/c/minibuffer.h index 8f4cf2e..3504e8b 100644 --- a/c/minibuffer.h +++ b/c/minibuffer.h @@ -70,7 +70,7 @@ static int mb_ass_slice(MiniBufferObj *self, count = right - left; if (count != buffer_len) { - PyErr_SetString(PyExc_TypeError, + PyErr_SetString(PyExc_ValueError, "right operand length must match slice length"); return -1; } |