mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-67565: Remove redundant C-contiguity checks (GH-105521)
Co-authored-by: Stefan Krah <skrah@bytereef.org>
This commit is contained in:
parent
c84b0390c0
commit
32c37fe1ba
30 changed files with 36 additions and 464 deletions
|
@ -4133,7 +4133,8 @@ _ssl__SSLContext_load_verify_locations_impl(PySSLContext *self,
|
|||
if (PyObject_GetBuffer(cadata, &buf, PyBUF_SIMPLE)) {
|
||||
goto error;
|
||||
}
|
||||
if (!PyBuffer_IsContiguous(&buf, 'C') || buf.ndim > 1) {
|
||||
assert(PyBuffer_IsContiguous(&buf, 'C'));
|
||||
if (buf.ndim > 1) {
|
||||
PyBuffer_Release(&buf);
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"cadata should be a contiguous buffer with "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue