mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +00:00
gh-111489: Remove _PyTuple_FromArray() alias (#139973)
Replace _PyTuple_FromArray() with PyTuple_FromArray(). Remove pycore_tuple.h includes.
This commit is contained in:
parent
447c7a89fb
commit
166cdaa6fb
23 changed files with 63 additions and 74 deletions
|
|
@ -13,7 +13,6 @@
|
|||
#include "pycore_modsupport.h" // _PyArg_NoKeywords()
|
||||
#include "pycore_object.h"
|
||||
#include "pycore_pyerrors.h" // struct _PyErr_SetRaisedException
|
||||
#include "pycore_tuple.h" // _PyTuple_FromArray()
|
||||
|
||||
#include "osdefs.h" // SEP
|
||||
#include "clinic/exceptions.c.h"
|
||||
|
|
@ -119,7 +118,7 @@ BaseException_vectorcall(PyObject *type_obj, PyObject * const*args,
|
|||
self->context = NULL;
|
||||
self->suppress_context = 0;
|
||||
|
||||
self->args = _PyTuple_FromArray(args, PyVectorcall_NARGS(nargsf));
|
||||
self->args = PyTuple_FromArray(args, PyVectorcall_NARGS(nargsf));
|
||||
if (!self->args) {
|
||||
Py_DECREF(self);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue