diff options
author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2019-02-25 21:37:26 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2019-02-25 21:37:26 (GMT) |
commit | f1b9abe35f75393351b3d954a392122a3f8f6951 (patch) | |
tree | cded6dbaa12d51478f71b9604c24910542799c5c /Python | |
parent | b5853e2650606781451925b733a40aec8dd7d365 (diff) | |
download | cpython-f1b9abe35f75393351b3d954a392122a3f8f6951.zip cpython-f1b9abe35f75393351b3d954a392122a3f8f6951.tar.gz cpython-f1b9abe35f75393351b3d954a392122a3f8f6951.tar.bz2 |
bpo-36030: Remove _PyStack_AsTuple() and _PyStack_AsTupleSlice() (GH-12032)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index eebdc5b..a19b8b8 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -5,6 +5,7 @@ #include "ast.h" #undef Yield /* undefine macro conflicting with <winbase.h> */ #include "pycore_pystate.h" +#include "pycore_tupleobject.h" _Py_IDENTIFIER(__builtins__); _Py_IDENTIFIER(__dict__); @@ -121,7 +122,7 @@ builtin___build_class__(PyObject *self, PyObject *const *args, Py_ssize_t nargs, "__build_class__: name is not a string"); return NULL; } - orig_bases = _PyStack_AsTupleSlice(args, nargs, 2, nargs); + orig_bases = _PyTuple_FromArray(args + 2, nargs - 2); if (orig_bases == NULL) return NULL; |