mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
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")
This commit is contained in:
parent
4e5a7284ee
commit
b32d4cad15
18 changed files with 32 additions and 32 deletions
|
|
@ -264,7 +264,7 @@ _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode,
|
|||
self->fd = -1;
|
||||
}
|
||||
|
||||
fd = _PyLong_AsInt(nameobj);
|
||||
fd = PyLong_AsInt(nameobj);
|
||||
if (fd < 0) {
|
||||
if (!PyErr_Occurred()) {
|
||||
PyErr_SetString(PyExc_ValueError,
|
||||
|
|
@ -412,7 +412,7 @@ _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode,
|
|||
goto error;
|
||||
}
|
||||
|
||||
self->fd = _PyLong_AsInt(fdobj);
|
||||
self->fd = PyLong_AsInt(fdobj);
|
||||
Py_DECREF(fdobj);
|
||||
if (self->fd < 0) {
|
||||
if (!PyErr_Occurred()) {
|
||||
|
|
|
|||
|
|
@ -280,7 +280,7 @@ _io__WindowsConsoleIO___init___impl(winconsoleio *self, PyObject *nameobj,
|
|||
self->fd = -1;
|
||||
}
|
||||
|
||||
fd = _PyLong_AsInt(nameobj);
|
||||
fd = PyLong_AsInt(nameobj);
|
||||
if (fd < 0) {
|
||||
if (!PyErr_Occurred()) {
|
||||
PyErr_SetString(PyExc_ValueError,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue