diff options
| author | Barry Warsaw | 2016-03-24 21:29:30 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-03-24 21:29:30 -0400 |
| commit | 5404f98d90410d69a744d9c0fb71a8a31f3a4a88 (patch) | |
| tree | beb5010e4d74ab0f8056419dc05058fc2bbd8cc6 /src/mailman/core/runner.py | |
| parent | a0cf7d44cbf0527d8bac05f870208a85689da42f (diff) | |
| download | mailman-5404f98d90410d69a744d9c0fb71a8a31f3a4a88.tar.gz mailman-5404f98d90410d69a744d9c0fb71a8a31f3a4a88.tar.zst mailman-5404f98d90410d69a744d9c0fb71a8a31f3a4a88.zip | |
Diffstat (limited to 'src/mailman/core/runner.py')
| -rw-r--r-- | src/mailman/core/runner.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mailman/core/runner.py b/src/mailman/core/runner.py index 64b830131..4c9c59464 100644 --- a/src/mailman/core/runner.py +++ b/src/mailman/core/runner.py @@ -17,11 +17,6 @@ """The process runner base class.""" -__all__ = [ - 'Runner', - ] - - import time import signal import logging @@ -29,6 +24,7 @@ import traceback from io import StringIO from lazr.config import as_boolean, as_timedelta +from mailman import public from mailman.config import config from mailman.core.i18n import _ from mailman.core.logging import reopen @@ -47,7 +43,7 @@ elog = logging.getLogger('mailman.error') rlog = logging.getLogger('mailman.runner') - +@public @implementer(IRunner) class Runner: is_queue_runner = True @@ -74,7 +70,7 @@ class Runner: name, self.queue_directory, slice, numslices, True) else: self.queue_directory = None - self.switchboard= None + self.switchboard = None self.sleep_time = as_timedelta(section.sleep_time) # sleep_time is a timedelta; turn it into a float for time.sleep(). self.sleep_float = (86400 * self.sleep_time.days + @@ -86,7 +82,7 @@ class Runner: self.status = 0 def __repr__(self): - return '<{0} at {1:#x}>'.format(self.__class__.__name__, id(self)) + return '<{} at {:#x}>'.format(self.__class__.__name__, id(self)) def signal_handler(self, signum, frame): signame = { |
