diff Python/sysmodule.c @ 70601:4af63c08f68a 2.7

sys.checkinterval() now refreshes the current countdown ticker.
author Raymond Hettinger <python@rcn.com>
date Wed, 01 Jun 2011 18:21:42 -0700
parents 5cf8f6da8743
children c351536e804a
line wrap: on
line diff
--- a/Python/sysmodule.c	Wed Jun 01 16:01:21 2011 -0700
+++ b/Python/sysmodule.c	Wed Jun 01 18:21:42 2011 -0700
@@ -466,6 +466,7 @@
 {
     if (!PyArg_ParseTuple(args, "i:setcheckinterval", &_Py_CheckInterval))
         return NULL;
+    _Py_Ticker = _Py_CheckInterval;
     Py_INCREF(Py_None);
     return Py_None;
 }