Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b4e59e9d
Commit
b4e59e9d
authored
Apr 16, 2012
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Plain Diff
Closes #14452: remove BOM insertion code.
parents
b206a80d
ee9e485c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Lib/logging/handlers.py
Lib/logging/handlers.py
+1
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/logging/handlers.py
View file @
b4e59e9d
...
...
@@ -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
:
...
...
Misc/NEWS
View file @
b4e59e9d
...
...
@@ -36,6 +36,8 @@ Core and Builtins
Library
-------
- Issue #14452: SysLogHandler no longer inserts a UTF-8 BOM into the message.
- Issue #14386: Expose the dict_proxy internal type as types.MappingProxyType.
- Issue #13959: Make imp.reload() always use a module'
s
__loader__
to
perform
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment