summaryrefslogtreecommitdiff
path: root/Mailman/Logging/StampedLogger.py
diff options
context:
space:
mode:
authorbwarsaw2001-06-27 17:34:33 +0000
committerbwarsaw2001-06-27 17:34:33 +0000
commitd42e8e4c0fc8b1ab0e4405d34bbb7163c2cbbc2f (patch)
treea2c2750c2da4716b802a12011bfb61d4de6436dd /Mailman/Logging/StampedLogger.py
parentb3cbd28da9c8f4bf7ad44af51b28172f424997d9 (diff)
downloadmailman-d42e8e4c0fc8b1ab0e4405d34bbb7163c2cbbc2f.tar.gz
mailman-d42e8e4c0fc8b1ab0e4405d34bbb7163c2cbbc2f.tar.zst
mailman-d42e8e4c0fc8b1ab0e4405d34bbb7163c2cbbc2f.zip
Diffstat (limited to 'Mailman/Logging/StampedLogger.py')
-rw-r--r--Mailman/Logging/StampedLogger.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Mailman/Logging/StampedLogger.py b/Mailman/Logging/StampedLogger.py
index 1adb048e7..5b5e6de70 100644
--- a/Mailman/Logging/StampedLogger.py
+++ b/Mailman/Logging/StampedLogger.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc.
+# Copyright (C) 1998,1999,2000,2001 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
@@ -16,8 +16,11 @@
import os
import time
-from Logger import Logger
+from Mailman.Logging.Logger import Logger
+
+
+
class StampedLogger(Logger):
"""Record messages in log files, including date stamp and optional label.
@@ -62,7 +65,7 @@ class StampedLogger(Logger):
self.__primed = 0
else:
stamp = ""
- if self.__label == None:
+ if self.__label is None:
label = "(%d)" % os.getpid()
else:
label = "%s(%d):" % (self.__label, os.getpid())