mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Remove sys._deactivate_opcache() now that is not needed (GH-27154)
This commit is contained in:
parent
f333ab0f2e
commit
4cb7263f0c
4 changed files with 1 additions and 50 deletions
|
@ -1971,22 +1971,6 @@ sys_getandroidapilevel_impl(PyObject *module)
|
|||
}
|
||||
#endif /* ANDROID_API_LEVEL */
|
||||
|
||||
|
||||
/*[clinic input]
|
||||
sys._deactivate_opcache
|
||||
|
||||
Deactivate the opcode cache permanently
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
sys__deactivate_opcache_impl(PyObject *module)
|
||||
/*[clinic end generated code: output=00e20982bd012122 input=501eac146735ccf9]*/
|
||||
{
|
||||
_PyEval_DeactivateOpCache();
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
|
||||
static PyMethodDef sys_methods[] = {
|
||||
/* Might as well keep this in alphabetic order */
|
||||
SYS_ADDAUDITHOOK_METHODDEF
|
||||
|
@ -2040,7 +2024,6 @@ static PyMethodDef sys_methods[] = {
|
|||
SYS_GET_ASYNCGEN_HOOKS_METHODDEF
|
||||
SYS_GETANDROIDAPILEVEL_METHODDEF
|
||||
SYS_UNRAISABLEHOOK_METHODDEF
|
||||
SYS__DEACTIVATE_OPCACHE_METHODDEF
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue