summaryrefslogtreecommitdiffstats
path: root/Objects/fileobject.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 /Objects/fileobject.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 'Objects/fileobject.c')
-rw-r--r--Objects/fileobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 751fb69..9c24025 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -174,7 +174,7 @@ PyObject_AsFileDescriptor(PyObject *o)
PyObject *meth;
if (PyLong_Check(o)) {
- fd = _PyLong_AsInt(o);
+ fd = PyLong_AsInt(o);
}
else if (PyObject_GetOptionalAttr(o, &_Py_ID(fileno), &meth) < 0) {
return -1;
@@ -186,7 +186,7 @@ PyObject_AsFileDescriptor(PyObject *o)
return -1;
if (PyLong_Check(fno)) {
- fd = _PyLong_AsInt(fno);
+ fd = PyLong_AsInt(fno);
Py_DECREF(fno);
}
else {