mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +00:00
bpo-46449: deepfreeze get_code() now returns strong ref (GH-30987)
This commit is contained in:
parent
44afdbd5af
commit
5a9e423473
|
@ -406,7 +406,7 @@ def generate(self, name: str, obj: object) -> str:
|
|||
_Py_get_%%NAME%%_toplevel(void)
|
||||
{
|
||||
%%NAME%%_do_patchups();
|
||||
return (PyObject *) &%%NAME%%_toplevel;
|
||||
return Py_NewRef((PyObject *) &%%NAME%%_toplevel);
|
||||
}
|
||||
"""
|
||||
|
||||
|
|
Loading…
Reference in a new issue