summaryrefslogtreecommitdiffstats
path: root/Lib/logging
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-04-16 13:39:53 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-04-16 13:39:53 (GMT)
commitee9e485c214b9348bc2e6bd3771d1a9be004a653 (patch)
tree7b6802443e2b9f0ddc2197b3c61d6387829259e1 /Lib/logging
parentaa292f91bbc589cd86cede476398018db557ea4f (diff)
downloadcpython-ee9e485c214b9348bc2e6bd3771d1a9be004a653.zip
cpython-ee9e485c214b9348bc2e6bd3771d1a9be004a653.tar.gz
cpython-ee9e485c214b9348bc2e6bd3771d1a9be004a653.tar.bz2
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 7689b04..65b0a2d 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: