diff options
| author | bwarsaw | 2002-03-02 20:49:23 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-03-02 20:49:23 +0000 |
| commit | 66669c6bff04dc0f81de08ae9d11240343b52f24 (patch) | |
| tree | 0e66d03d5691ae33af2e73b1ae910fdcd4a188fb /Mailman/Queue/NewsRunner.py | |
| parent | 327d3cb2c5e1706a4f4b3033b32849159b39666e (diff) | |
| download | mailman-66669c6bff04dc0f81de08ae9d11240343b52f24.tar.gz mailman-66669c6bff04dc0f81de08ae9d11240343b52f24.tar.zst mailman-66669c6bff04dc0f81de08ae9d11240343b52f24.zip | |
Constructor simplification. Since most derived classes are just
specializing the queue directory, make QDIR a class attribute and have
Runner's ctor use that instead of an __init__() argument. This lets
us get rid of most of the __init__()'s in the derived classes.
(OutgoingRunner still needs one though.)
Diffstat (limited to 'Mailman/Queue/NewsRunner.py')
| -rw-r--r-- | Mailman/Queue/NewsRunner.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Mailman/Queue/NewsRunner.py b/Mailman/Queue/NewsRunner.py index db4249383..383c59ed3 100644 --- a/Mailman/Queue/NewsRunner.py +++ b/Mailman/Queue/NewsRunner.py @@ -47,9 +47,7 @@ mcre = re.compile(r""" class NewsRunner(Runner): - def __init__(self, slice=None, numslices=1, cachelists=1): - Runner.__init__(self, mm_cfg.NEWSQUEUE_DIR, - slice, numslices, cachelists) + QDIR = mm_cfg.NEWSQUEUE_DIR def _dispose(self, mlist, msg, msgdata): if not msgdata.get('prepped'): |
