diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-04-16 14:38:23 +0100 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-04-16 14:38:23 +0100 |
commit | 7e9c9d51b640f0486b4b31f8bf5fe21d1fe7ee11 (patch) | |
tree | fe02277a10d76d40860f8372c58d18e6bd32d215 /Lib/logging | |
parent | 9945a64a8bc47ec91dfa849bb36e39ce0c36013f (diff) | |
download | cpython-git-7e9c9d51b640f0486b4b31f8bf5fe21d1fe7ee11.tar.gz |
Issue #14452: remove BOM insertion code.
Diffstat (limited to 'Lib/logging')
-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: |