summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-24 23:01:30 (GMT)
committerGitHub <noreply@github.com>2023-08-24 23:01:30 (GMT)
commitb32d4cad15f537f25063bcd56377e16df59d98db (patch)
tree0a71372347d58e79575f9dfae35407c694fcb611 /Modules/posixmodule.c
parent4e5a7284eef4308dce252ca1115d4a5a5b7e6ae8 (diff)
downloadcpython-b32d4cad15f537f25063bcd56377e16df59d98db.zip
cpython-b32d4cad15f537f25063bcd56377e16df59d98db.tar.gz
cpython-b32d4cad15f537f25063bcd56377e16df59d98db.tar.bz2
gh-108444: Replace _PyLong_AsInt() with PyLong_AsInt() (#108459)
Change generated by the command: sed -i -e 's!_PyLong_AsInt!PyLong_AsInt!g' \ $(find -name "*.c" -o -name "*.h")
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 8026080..cffa401 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -6821,7 +6821,7 @@ parse_posix_spawn_flags(PyObject *module, const char *func_name, PyObject *setpg
goto fail;
}
if (py_schedpolicy != Py_None) {
- int schedpolicy = _PyLong_AsInt(py_schedpolicy);
+ int schedpolicy = PyLong_AsInt(py_schedpolicy);
if (schedpolicy == -1 && PyErr_Occurred()) {
goto fail;
@@ -12484,7 +12484,7 @@ conv_confname(PyObject *arg, int *valuep, struct constdef *table,
size_t tablesize)
{
if (PyLong_Check(arg)) {
- int value = _PyLong_AsInt(arg);
+ int value = PyLong_AsInt(arg);
if (value == -1 && PyErr_Occurred())
return 0;
*valuep = value;
@@ -15668,7 +15668,7 @@ os_waitstatus_to_exitcode_impl(PyObject *module, PyObject *status_obj)
/*[clinic end generated code: output=db50b1b0ba3c7153 input=7fe2d7fdaea3db42]*/
{
#ifndef MS_WINDOWS
- int status = _PyLong_AsInt(status_obj);
+ int status = PyLong_AsInt(status_obj);
if (status == -1 && PyErr_Occurred()) {
return NULL;
}