diff options
Diffstat (limited to 'Lib/logging/handlers.py')
-rw-r--r-- | Lib/logging/handlers.py | 2 |
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: |