Update of /cvsroot/mailman/mailman/Mailman/Queue
In directory usw-pr-cvs1:/tmp/cvs-serv14120/Mailman/Queue
Modified Files:
Runner.py
Log Message:
_snooze(): Use self.SLEEPTIME instead of mm_cfg.QRUNNER_SLEEP_TIME for
additional indirection that's overridden by the BounceRunner.
Defaults to QRUNNER_SLEEP_TIME for backwards compatibility.
Index: Runner.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Queue/Runner.py,v
retrieving revision 2.20
retrieving revision 2.21
diff -C2 -d -r2.20 -r2.21
*** Runner.py 13 Mar 2002 13:42:56 -0000 2.20
--- Runner.py 26 Mar 2002 22:26:10 -0000 2.21
***************
*** 36,39 ****
--- 36,41 ----
class Runner:
+ SLEEPTIME = mm_cfg.QRUNNER_SLEEP_TIME
+
def __init__(self, slice=None, numslices=1):
self._kids = {}
***************
*** 229,235 ****
little slice of hash space).
"""
! if mm_cfg.QRUNNER_SLEEP_TIME <= 0:
return
! time.sleep(mm_cfg.QRUNNER_SLEEP_TIME)
def _shortcircuit(self):
--- 231,237 ----
little slice of hash space).
"""
! if self.SLEEPTIME <= 0:
return
! time.sleep(self.SLEEPTIME)
def _shortcircuit(self):
_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins