diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-25 09:13:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-25 09:13:59 (GMT) |
commit | e59a95238b76f518e936b6e70da9207d923964db (patch) | |
tree | dda31d8f166f311c82323a20effffeec499e3874 /Parser | |
parent | 24aa249a6633249570978d6aae6f7b21581ee085 (diff) | |
download | cpython-e59a95238b76f518e936b6e70da9207d923964db.zip cpython-e59a95238b76f518e936b6e70da9207d923964db.tar.gz cpython-e59a95238b76f518e936b6e70da9207d923964db.tar.bz2 |
gh-108444: Remove _PyLong_AsInt() function (#108461)
* Update Parser/asdl_c.py to regenerate Python/Python-ast.c.
* Remove _PyLong_AsInt() alias to PyLong_AsInt().
Diffstat (limited to 'Parser')
-rwxr-xr-x | Parser/asdl_c.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index bf14487..ca259c8 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -1074,7 +1074,7 @@ static int obj2ast_int(struct ast_state* Py_UNUSED(state), PyObject* obj, int* o return 1; } - i = _PyLong_AsInt(obj); + i = PyLong_AsInt(obj); if (i == -1 && PyErr_Occurred()) return 1; *out = i; |