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
|
@ -104,10 +104,6 @@ _multiprocessing_send(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
if (PyObject_GetBuffer(args[1], &buf, PyBUF_SIMPLE) != 0) {
|
||||
goto exit;
|
||||
}
|
||||
if (!PyBuffer_IsContiguous(&buf, 'C')) {
|
||||
_PyArg_BadArgument("send", "argument 2", "contiguous buffer", args[1]);
|
||||
goto exit;
|
||||
}
|
||||
return_value = _multiprocessing_send_impl(module, handle, &buf);
|
||||
|
||||
exit:
|
||||
|
@ -168,4 +164,4 @@ exit:
|
|||
#ifndef _MULTIPROCESSING_SEND_METHODDEF
|
||||
#define _MULTIPROCESSING_SEND_METHODDEF
|
||||
#endif /* !defined(_MULTIPROCESSING_SEND_METHODDEF) */
|
||||
/*[clinic end generated code: output=48504f7a2d37958c input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=73b4cb8428d816da input=a9049054013a1b77]*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue