mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Closes #14452: remove BOM insertion code.
This commit is contained in:
commit
b4e59e9dc1
2 changed files with 3 additions and 1 deletions
|
@ -850,7 +850,7 @@ 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')
|
||||
msg = prio + BOM_UTF8 + msg
|
||||
msg = prio + msg
|
||||
try:
|
||||
if self.unixsocket:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue