From 5cbfa62dc989e628e537204370e5690015bea58f Mon Sep 17 00:00:00 2001 From: bwarsaw <> Date: Sun, 22 Feb 2004 22:38:16 +0000 Subject: __repr__(): Added for better logging. --- Mailman/Queue/Runner.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Mailman') diff --git a/Mailman/Queue/Runner.py b/Mailman/Queue/Runner.py index 8b5bddcb..61c902d5 100644 --- a/Mailman/Queue/Runner.py +++ b/Mailman/Queue/Runner.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2003 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2004 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -52,6 +52,9 @@ class Runner: self._shunt = Switchboard(mm_cfg.SHUNTQUEUE_DIR) self._stop = False + def __repr__(self): + return '<%s at %s>' % (self.__class__.__name__, id(self)) + def stop(self): self._stop = True -- cgit v1.2.3