aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Logging/Syslog.py
diff options
context:
space:
mode:
authorbwarsaw <>2005-12-30 18:50:08 +0000
committerbwarsaw <>2005-12-30 18:50:08 +0000
commitd44c2c9f011075a7f6b6ffebe22ec3f17dda3a26 (patch)
tree6199ed049dba0f377f628b9c57a08b1ff9c3f500 /Mailman/Logging/Syslog.py
parent11ba661517e7606f5f38a8be87f68b32bff0afd4 (diff)
downloadmailman2-d44c2c9f011075a7f6b6ffebe22ec3f17dda3a26.tar.gz
mailman2-d44c2c9f011075a7f6b6ffebe22ec3f17dda3a26.tar.xz
mailman2-d44c2c9f011075a7f6b6ffebe22ec3f17dda3a26.zip
A cleansing pass, almost entirely cosmetic. Such things as whitespace
normalization, removal of tabs, copyright year updates to changed files, docstring and comment fixes, and usage of True/False. I also made a pass through the NEWS file. One import was reordered, and after this commit I will move the mmdsr.readme file to README.mmdsr. From my perspective, after that we're ready to go. I will port these changes forward to the trunk.
Diffstat (limited to 'Mailman/Logging/Syslog.py')
-rw-r--r--Mailman/Logging/Syslog.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/Mailman/Logging/Syslog.py b/Mailman/Logging/Syslog.py
index 654ce64c..531ab1d7 100644
--- a/Mailman/Logging/Syslog.py
+++ b/Mailman/Logging/Syslog.py
@@ -1,24 +1,27 @@
-# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2005 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
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+# USA.
"""Central logging class for the Mailman system.
This might eventually be replaced by a syslog based logger, hence the name.
"""
+import quopri
+
from Mailman.Logging.StampedLogger import StampedLogger
@@ -59,7 +62,6 @@ class _Syslog:
logf.write(msg + '\n')
except UnicodeError:
# Python 2.4 may fail to write 8bit (non-ascii) characters
- import quopri
logf.write(quopri.encodestring(msg) + '\n')
# For the ultimate in convenience