summaryrefslogtreecommitdiffstats
path: root/Modules/binascii.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/binascii.c')
-rw-r--r--Modules/binascii.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c
index a87a2ef..17970aa 100644
--- a/Modules/binascii.c
+++ b/Modules/binascii.c
@@ -185,13 +185,7 @@ ascii_buffer_converter(PyObject *arg, Py_buffer *buf)
"not '%.100s'", Py_TYPE(arg)->tp_name);
return 0;
}
- if (!PyBuffer_IsContiguous(buf, 'C')) {
- PyErr_Format(PyExc_TypeError,
- "argument should be a contiguous buffer, "
- "not '%.100s'", Py_TYPE(arg)->tp_name);
- PyBuffer_Release(buf);
- return 0;
- }
+ assert(PyBuffer_IsContiguous(buf, 'C'));
return Py_CLEANUP_SUPPORTED;
}