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 /Python/ceval.c | |
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 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 55dfe6b..a56d31e 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2416,7 +2416,7 @@ import_name(PyThreadState *tstate, _PyInterpreterFrame *frame, /* Fast path for not overloaded __import__. */ if (_PyImport_IsDefaultImportFunc(tstate->interp, import_func)) { - int ilevel = _PyLong_AsInt(level); + int ilevel = PyLong_AsInt(level); if (ilevel == -1 && _PyErr_Occurred(tstate)) { return NULL; } |