diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-02-28 14:16:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 14:16:39 -0700 |
commit | 880437d4ec65ef35d505eeaff9dad5c6654dbc1a (patch) | |
tree | 1dee8a4dcc709b6b9f99d025cddbe3fe14ceadd5 /Python/Python-ast.c | |
parent | f300a1fa4c121f7807cbda4fc8bb26240c69ea74 (diff) | |
download | cpython-git-880437d4ec65ef35d505eeaff9dad5c6654dbc1a.tar.gz |
gh-100227: Move _str_replace_inf to PyInterpreterState (gh-102333)
https://github.com/python/cpython/issues/100227
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r-- | Python/Python-ast.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c index d113c47b95..6c878474af 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -263,9 +263,7 @@ void _PyAST_Fini(PyInterpreterState *interp) Py_CLEAR(state->vararg); Py_CLEAR(state->withitem_type); - if (_PyInterpreterState_Get() == _PyInterpreterState_Main()) { - Py_CLEAR(_Py_CACHED_OBJECT(str_replace_inf)); - } + Py_CLEAR(_Py_INTERP_CACHED_OBJECT(interp, str_replace_inf)); #if !defined(NDEBUG) state->initialized = -1; |