@@ -1597,10 +1597,10 @@ UTF-8, then you need to do the following:
15971597 :class: `~logging.handlers.SysLogHandler ` instance, with a format string
15981598 such as::
15991599
1600- u" ASCII section\ufeffUnicode section"
1600+ ' ASCII section\ufeffUnicode section'
16011601
1602- The Unicode code point ``u '\feff` ``, when encoded using UTF-8, will be
1603- encoded as a UTF-8 BOM -- the bytestring ``'\xef\xbb\bf ' ``.
1602+ The Unicode code point ``'\feff` ``, when encoded using UTF-8, will be
1603+ encoded as a UTF-8 BOM -- the byte-string ``b '\xef\xbb\xbf ' ``.
16041604
16051605#. Replace the ASCII section with whatever placeholders you like, but make sure
16061606 that the data that appears in there after substitution is always ASCII (that
@@ -1610,8 +1610,8 @@ UTF-8, then you need to do the following:
16101610 which appears there after substitution is Unicode, that's fine -- it will be
16111611 encoded using UTF-8.
16121612
1613- If the formatted message is Unicode, it *will * be encoded using UTF-8 encoding
1614- by ``SysLogHandler ``. If you follow these rules, you should be able to produce
1613+ The formatted message *will * be encoded using UTF-8 encoding by
1614+ ``SysLogHandler ``. If you follow the above rules, you should be able to produce
16151615RFC 5424-compliant messages. If you don't, logging may not complain, but your
16161616messages will not be RFC 5424-compliant, and your syslog daemon may complain.
16171617
0 commit comments