diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-24 23:01:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 23:01:30 (GMT) |
commit | b32d4cad15f537f25063bcd56377e16df59d98db (patch) | |
tree | 0a71372347d58e79575f9dfae35407c694fcb611 /Modules/_io | |
parent | 4e5a7284eef4308dce252ca1115d4a5a5b7e6ae8 (diff) | |
download | cpython-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/_io')
-rw-r--r-- | Modules/_io/fileio.c | 4 | ||||
-rw-r--r-- | Modules/_io/winconsoleio.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index 7fe37ee..d52bcd5 100644 --- a/Modules/_io/fileio.c +++ b/Modules/_io/fileio.c @@ -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()) { diff --git a/Modules/_io/winconsoleio.c b/Modules/_io/winconsoleio.c index a1ed7eb..875c90c 100644 --- a/Modules/_io/winconsoleio.c +++ b/Modules/_io/winconsoleio.c @@ -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, |