summaryrefslogtreecommitdiff
path: root/Lib/logging
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-04-16 14:39:53 +0100
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-04-16 14:39:53 +0100
commit6b95273a3d66c25dce4b6464afb2a8e2c3d87da7 (patch)
treec0860a3adfd9ff367b89920b78939a770050dbb9 /Lib/logging
parent8c3c891f7ae981dbc3ba221d9ddfe3ad09082718 (diff)
downloadcpython-6b95273a3d66c25dce4b6464afb2a8e2c3d87da7.tar.gz
Closes #14452: remove BOM insertion code.
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/handlers.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
index 7689b040c6..65b0a2da00 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -808,8 +808,6 @@ class SysLogHandler(logging.Handler):
prio = prio.encode('utf-8')
# Message is a string. Convert to bytes as required by RFC 5424
msg = msg.encode('utf-8')
- if codecs:
- msg = codecs.BOM_UTF8 + msg
msg = prio + msg
try:
if self.unixsocket: