diff options
| author | bwarsaw | 2005-12-30 18:56:46 +0000 |
|---|---|---|
| committer | bwarsaw | 2005-12-30 18:56:46 +0000 |
| commit | 991f57220ddfdc34c9bab88f6241ecc486abdbcc (patch) | |
| tree | 4a913b66e7e9e5d7b5a77f57d56236330a164019 /Mailman/Logging/Syslog.py | |
| parent | 0589a8a58e94ec29644c9d665055b4a1be9953b5 (diff) | |
| download | mailman-991f57220ddfdc34c9bab88f6241ecc486abdbcc.tar.gz mailman-991f57220ddfdc34c9bab88f6241ecc486abdbcc.tar.zst mailman-991f57220ddfdc34c9bab88f6241ecc486abdbcc.zip | |
Diffstat (limited to 'Mailman/Logging/Syslog.py')
| -rw-r--r-- | Mailman/Logging/Syslog.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Mailman/Logging/Syslog.py b/Mailman/Logging/Syslog.py index 654ce64c8..531ab1d7b 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 |
