mirror of https://github.com/python/cpython
Issue #14452: remove BOM insertion code.
This commit is contained in:
parent
9945a64a8b
commit
7e9c9d51b6
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue