From 8938d65327611dded72c7876ffe52e4d4d12ce76 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 10 Dec 2009 22:32:25 -0500 Subject: * Refactor the language manager off of the config object and into a utility. * Fix a few small typos in exception handlers. * Move the initialization of the Zope Component Architecture into the first initialization step. The only reason we couldn't do that previously was because the domain object referenced the config, causing a circularity problem. Refactor the Domain implementation to avoid that. --- src/mailman/bin/master.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/mailman/bin/master.py') diff --git a/src/mailman/bin/master.py b/src/mailman/bin/master.py index 5ce003690..a6091e834 100644 --- a/src/mailman/bin/master.py +++ b/src/mailman/bin/master.py @@ -194,14 +194,15 @@ def acquire_lock(force): if status == WatcherState.conflict: # Hostname matches and process exists. message = _("""\ -The master queue runner lock could not be acquired because it appears as -though another master is already running.""") +The master queue runner lock could not be acquired because it +appears as though another master is already running.""") elif status == WatcherState.stale_lock: # Hostname matches but the process does not exist. program = sys.argv[0] message = _("""\ -The master queue runner lock could not be acquired. It appears as though -there is a stale master lock. Try re-running $program with the -s flag.""") +The master queue runner lock could not be acquired. It appears +as though there is a stale master lock. Try re-running $program +with the -s flag.""") else: # Hostname doesn't even match. assert status == WatcherState.host_mismatch, ( @@ -209,9 +210,10 @@ there is a stale master lock. Try re-running $program with the -s flag.""") # pylint: disable-msg=W0612 hostname, pid, tempfile = get_lock_data() message = _("""\ -The master qrunner lock could not be acquired, because it appears as if some -process on some other host may have acquired it. We can't test for stale -locks across host boundaries, so you'll have to clean this up manually. +The master qrunner lock could not be acquired, because it appears +as if some process on some other host may have acquired it. We +can't test for stale locks across host boundaries, so you'll have +to clean this up manually. Lock file: $config.LOCK_FILE Lock host: $hostname -- cgit v1.2.3-70-g09d2