Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a61b459

Browse files
committed
Merged documentation update from 3.2.
2 parents 9eeea48 + a58d668 commit a61b459

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/howto/logging-cookbook.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,7 @@ appear before it.
15891589

15901590
As this behaviour is broken, the incorrect BOM insertion code is being removed
15911591
from Python 3.2.4 and later. However, it is not being replaced, and if you
1592-
want to produce RFC 5424-compliant messages which includes a BOM, an optional
1592+
want to produce RFC 5424-compliant messages which include a BOM, an optional
15931593
pure-ASCII sequence before it and arbitrary Unicode after it, encoded using
15941594
UTF-8, then you need to do the following:
15951595

@@ -1607,8 +1607,8 @@ UTF-8, then you need to do the following:
16071607
way, it will remain unchanged after UTF-8 encoding).
16081608

16091609
#. Replace the Unicode section with whatever placeholders you like; if the data
1610-
which appears there after substitution is Unicode, that's fine -- it will be
1611-
encoded using UTF-8.
1610+
which appears there after substitution contains characters outside the ASCII
1611+
range, that's fine -- it will be encoded using UTF-8.
16121612

16131613
The formatted message *will* be encoded using UTF-8 encoding by
16141614
``SysLogHandler``. If you follow the above rules, you should be able to produce

0 commit comments

Comments
 (0)