summaryrefslogtreecommitdiff
path: root/Lib/logging
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-04-16 14:38:23 +0100
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-04-16 14:38:23 +0100
commit7e9c9d51b640f0486b4b31f8bf5fe21d1fe7ee11 (patch)
treefe02277a10d76d40860f8372c58d18e6bd32d215 /Lib/logging
parent9945a64a8bc47ec91dfa849bb36e39ce0c36013f (diff)
downloadcpython-git-7e9c9d51b640f0486b4b31f8bf5fe21d1fe7ee11.tar.gz
Issue #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 6bbc1f71b6..0eb36f3f22 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -821,8 +821,6 @@ class SysLogHandler(logging.Handler):
# Message is a string. Convert to bytes as required by RFC 5424
if type(msg) is unicode:
msg = msg.encode('utf-8')
- if codecs:
- msg = codecs.BOM_UTF8 + msg
msg = prio + msg
try:
if self.unixsocket: