gh-108444: Argument Clinic uses PyLong_AsInt() (#108458)

Argument Clinic now uses the new public PyLong_AsInt(), rather than
the old name _PyLong_AsInt().
This commit is contained in:
Victor Stinner 2023-08-25 00:51:22 +02:00 committed by GitHub
parent be800f4be7
commit 4e5a7284ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
73 changed files with 467 additions and 466 deletions

View file

@ -62,7 +62,7 @@ stringlib_expandtabs(PyObject *self, PyObject *const *args, Py_ssize_t nargs, Py
if (!noptargs) {
goto skip_optional_pos;
}
tabsize = _PyLong_AsInt(args[0]);
tabsize = PyLong_AsInt(args[0]);
if (tabsize == -1 && PyErr_Occurred()) {
goto exit;
}
@ -278,4 +278,4 @@ stringlib_zfill(PyObject *self, PyObject *arg)
exit:
return return_value;
}
/*[clinic end generated code: output=d44a269805f6739e input=a9049054013a1b77]*/
/*[clinic end generated code: output=00e34c03331699fe input=a9049054013a1b77]*/