mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
sys.checkinterval() now refreshes the current countdown ticker.
This commit is contained in:
parent
88fc66179b
commit
19b851d11b
2 changed files with 8 additions and 0 deletions
|
@ -466,6 +466,7 @@ sys_setcheckinterval(PyObject *self, PyObject *args)
|
|||
{
|
||||
if (!PyArg_ParseTuple(args, "i:setcheckinterval", &_Py_CheckInterval))
|
||||
return NULL;
|
||||
_Py_Ticker = _Py_CheckInterval;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue