]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Improved cookbook entry and fixed typo.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 27 Jul 2012 09:52:18 +0000 (10:52 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 27 Jul 2012 09:52:18 +0000 (10:52 +0100)
Doc/howto/logging-cookbook.rst

index a040aa4b80e741b8265ce8e38c819c8f80cb05fa..1bb1a461ccdc599661baaaf887d3202f3350f231 100644 (file)
@@ -763,7 +763,7 @@ appear before it.
 
 As this behaviour is broken, the incorrect BOM insertion code is being removed
 from Python 2.7.4 and later. However, it is not being replaced, and if you
-want to produce RFC 5424-compliant messages which includes a BOM, an optional
+want to produce RFC 5424-compliant messages which include a BOM, an optional
 pure-ASCII sequence before it and arbitrary Unicode after it, encoded using
 UTF-8, then you need to do the following:
 
@@ -781,8 +781,8 @@ UTF-8, then you need to do the following:
    way, it will remain unchanged after UTF-8 encoding).
 
 #. Replace the Unicode section with whatever placeholders you like; if the data
-   which appears there after substitution is Unicode, that's fine -- it will be
-   encoded using UTF-8.
+   which appears there after substitution contains characters outside the ASCII
+   range, that's fine -- it will be encoded using UTF-8.
 
 If the formatted message is Unicode, it *will* be encoded using UTF-8 encoding
 by ``SysLogHandler``. If you follow the above rules, you should be able to