diff options
| author | Victor Stinner <vstinner@python.org> | 2023-08-24 22:51:22 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-24 22:51:22 (GMT) |
| commit | 4e5a7284eef4308dce252ca1115d4a5a5b7e6ae8 (patch) | |
| tree | 31cacab08c7168e0868d6231a70b4a679fffdf58 /Python/clinic/bltinmodule.c.h | |
| parent | be800f4be78106d7566c694b3a5652761798db96 (diff) | |
| download | cpython-4e5a7284eef4308dce252ca1115d4a5a5b7e6ae8.zip cpython-4e5a7284eef4308dce252ca1115d4a5a5b7e6ae8.tar.gz cpython-4e5a7284eef4308dce252ca1115d4a5a5b7e6ae8.tar.bz2 | |
gh-108444: Argument Clinic uses PyLong_AsInt() (#108458)
Argument Clinic now uses the new public PyLong_AsInt(), rather than
the old name _PyLong_AsInt().
Diffstat (limited to 'Python/clinic/bltinmodule.c.h')
| -rw-r--r-- | Python/clinic/bltinmodule.c.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Python/clinic/bltinmodule.c.h b/Python/clinic/bltinmodule.c.h index 7540de6..b0d6929 100644 --- a/Python/clinic/bltinmodule.c.h +++ b/Python/clinic/bltinmodule.c.h @@ -99,7 +99,7 @@ builtin___import__(PyObject *module, PyObject *const *args, Py_ssize_t nargs, Py goto skip_optional_pos; } } - level = _PyLong_AsInt(args[4]); + level = PyLong_AsInt(args[4]); if (level == -1 && PyErr_Occurred()) { goto exit; } @@ -242,7 +242,7 @@ builtin_chr(PyObject *module, PyObject *arg) PyObject *return_value = NULL; int i; - i = _PyLong_AsInt(arg); + i = PyLong_AsInt(arg); if (i == -1 && PyErr_Occurred()) { goto exit; } @@ -342,7 +342,7 @@ builtin_compile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj goto skip_optional_pos; } if (args[3]) { - flags = _PyLong_AsInt(args[3]); + flags = PyLong_AsInt(args[3]); if (flags == -1 && PyErr_Occurred()) { goto exit; } @@ -360,7 +360,7 @@ builtin_compile(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj } } if (args[5]) { - optimize = _PyLong_AsInt(args[5]); + optimize = PyLong_AsInt(args[5]); if (optimize == -1 && PyErr_Occurred()) { goto exit; } @@ -372,7 +372,7 @@ skip_optional_pos: if (!noptargs) { goto skip_optional_kwonly; } - feature_version = _PyLong_AsInt(args[6]); + feature_version = PyLong_AsInt(args[6]); if (feature_version == -1 && PyErr_Occurred()) { goto exit; } @@ -1212,4 +1212,4 @@ builtin_issubclass(PyObject *module, PyObject *const *args, Py_ssize_t nargs) exit: return return_value; } -/*[clinic end generated code: output=daeee81b018824f4 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=bb2da8ccae4190e9 input=a9049054013a1b77]*/ |
