diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-11-14 13:50:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 13:50:56 -0700 |
commit | a088290f9d53a6bd078de6ee67b2fa296fc1cc14 (patch) | |
tree | cd464c7ed31b1fd4ea145eaa8cb073a7fac70985 /Python/ast_unparse.c | |
parent | 619cadcda6a8ba4a038c1807b6566a90e25db934 (diff) | |
download | cpython-a088290f9d53a6bd078de6ee67b2fa296fc1cc14.tar.gz cpython-a088290f9d53a6bd078de6ee67b2fa296fc1cc14.zip |
gh-81057: Move Global Variables Holding Objects to _PyRuntimeState. (gh-99487)
This moves nearly all remaining object-holding globals in core code (other than static types).
https://github.com/python/cpython/issues/81057
Diffstat (limited to 'Python/ast_unparse.c')
-rw-r--r-- | Python/ast_unparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast_unparse.c b/Python/ast_unparse.c index 6565b6b33eb..79b2e2f15ba 100644 --- a/Python/ast_unparse.c +++ b/Python/ast_unparse.c @@ -13,7 +13,7 @@ _Py_DECLARE_STR(open_br, "{"); _Py_DECLARE_STR(dbl_open_br, "{{"); _Py_DECLARE_STR(close_br, "}"); _Py_DECLARE_STR(dbl_close_br, "}}"); -static PyObject *_str_replace_inf; +#define _str_replace_inf _Py_CACHED_OBJECT(str_replace_inf) /* Forward declarations for recursion via helper functions. */ static PyObject * |