mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
gh-101386: fix typos found by codespell (#101387)
This commit is contained in:
parent
052f53d65d
commit
db757f0e44
4 changed files with 6 additions and 6 deletions
|
@ -3628,7 +3628,7 @@ refer to the comments in the code snippet for more detailed information.
|
|||
Logging to syslog with RFC5424 support
|
||||
--------------------------------------
|
||||
|
||||
Although :rfc:`5424` dates from 2009, most syslog servers are configured by detault to
|
||||
Although :rfc:`5424` dates from 2009, most syslog servers are configured by default to
|
||||
use the older :rfc:`3164`, which hails from 2001. When ``logging`` was added to Python
|
||||
in 2003, it supported the earlier (and only existing) protocol at the time. Since
|
||||
RFC5424 came out, as there has not been widespread deployment of it in syslog
|
||||
|
@ -3819,7 +3819,7 @@ then running the script results in
|
|||
WARNING:demo:division by zero
|
||||
|
||||
As you can see, this output isn't ideal. That's because the underlying code
|
||||
which writes to ``sys.stderr`` makes mutiple writes, each of which results in a
|
||||
which writes to ``sys.stderr`` makes multiple writes, each of which results in a
|
||||
separate logged line (for example, the last three lines above). To get around
|
||||
this problem, you need to buffer things and only output log lines when newlines
|
||||
are seen. Let's use a slghtly better implementation of ``LoggerWriter``:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue