From 90814a40b82e559ebfa999df2121ba2e8e32500f Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 8 Oct 2010 17:17:34 -0400 Subject: Fix the obvious errors identified by pyflakes. Skip false positives (mostly due to _() interpolation) and a few other problems that did not have immediately obvious fixes. --- src/mailman/bin/master.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mailman/bin/master.py') diff --git a/src/mailman/bin/master.py b/src/mailman/bin/master.py index 96b265864..0d0276fdb 100644 --- a/src/mailman/bin/master.py +++ b/src/mailman/bin/master.py @@ -27,13 +27,12 @@ __all__ = [ import os import sys -import time import errno import signal import socket import logging -from datetime import datetime, timedelta +from datetime import timedelta from flufl.enum import Enum from lazr.config import as_boolean from locknix import lockfile @@ -119,7 +118,8 @@ def get_lock_data(): with open(config.LOCK_FILE) as fp: filename = os.path.split(fp.read().strip())[1] parts = filename.split('.') - timestamp = parts.pop() + # Ignore the timestamp. + parts.pop() pid = parts.pop() hostname = parts.pop() filename = DOT.join(reversed(parts)) -- cgit v1.2.3-70-g09d2