summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python/remove-BOM-insection-code.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python/remove-BOM-insection-code.patch')
-rw-r--r--meta/recipes-devtools/python/python/remove-BOM-insection-code.patch24
1 files changed, 0 insertions, 24 deletions
diff --git a/meta/recipes-devtools/python/python/remove-BOM-insection-code.patch b/meta/recipes-devtools/python/python/remove-BOM-insection-code.patch
deleted file mode 100644
index 3462620917..0000000000
--- a/meta/recipes-devtools/python/python/remove-BOM-insection-code.patch
+++ /dev/null
@@ -1,24 +0,0 @@
1# HG changeset patch
2# User Vinay Sajip <vinay_sajip@yahoo.co.uk>
3# Date 1334583503 -3600
4# Node ID af46a001d5eca99a7ff44ed18256c235c5c3f1d0
5# Parent 33bc53e0aa9ea42c6a6bb077d182e62c8c569aa1
6Issue #14452: remove BOM insertion code.
7
8Backport from https://hg.python.org/cpython/rev/af46a001d5ec.
9
10Upstream-Status: Backport
11Signed-off-by: Kai Kang <kai.kang@windriver.com>
12---
13diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
14--- a/Lib/logging/handlers.py
15+++ b/Lib/logging/handlers.py
16@@ -821,8 +821,6 @@ class SysLogHandler(logging.Handler):
17 # Message is a string. Convert to bytes as required by RFC 5424
18 if type(msg) is unicode:
19 msg = msg.encode('utf-8')
20- if codecs:
21- msg = codecs.BOM_UTF8 + msg
22 msg = prio + msg
23 try:
24 if self.unixsocket: