mirror of
https://github.com/python/cpython.git
synced 2026-01-08 08:22:41 +00:00
Closes #14452: remove BOM insertion code.
This commit is contained in:
parent
aa292f91bb
commit
ee9e485c21
2 changed files with 2 additions and 2 deletions
|
|
@ -808,8 +808,6 @@ def emit(self, record):
|
|||
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue