Skip to content

Commit db757f0

Browse files
authored
gh-101386: fix typos found by codespell (#101387)
1 parent 052f53d commit db757f0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Doc/c-api/init_config.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ PyConfig
839839
will produce an error.
840840
841841
Configured by the :option:`-X int_max_str_digits <-X>` command line
842-
flag or the :envvar:`PYTHONINTMAXSTRDIGITS` environment varable.
842+
flag or the :envvar:`PYTHONINTMAXSTRDIGITS` environment variable.
843843
844844
Default: ``-1`` in Python mode. 4300
845845
(:data:`sys.int_info.default_max_str_digits`) in isolated mode.
@@ -1582,7 +1582,7 @@ applied during the "Main" phase. It may allow to customize Python in Python to
15821582
override or tune the :ref:`Path Configuration <init-path-config>`, maybe
15831583
install a custom :data:`sys.meta_path` importer or an import hook, etc.
15841584
1585-
It may become possible to calculatin the :ref:`Path Configuration
1585+
It may become possible to calculate the :ref:`Path Configuration
15861586
<init-path-config>` in Python, after the Core phase and before the Main phase,
15871587
which is one of the :pep:`432` motivation.
15881588

Doc/howto/logging-cookbook.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3628,7 +3628,7 @@ refer to the comments in the code snippet for more detailed information.
36283628
Logging to syslog with RFC5424 support
36293629
--------------------------------------
36303630

3631-
Although :rfc:`5424` dates from 2009, most syslog servers are configured by detault to
3631+
Although :rfc:`5424` dates from 2009, most syslog servers are configured by default to
36323632
use the older :rfc:`3164`, which hails from 2001. When ``logging`` was added to Python
36333633
in 2003, it supported the earlier (and only existing) protocol at the time. Since
36343634
RFC5424 came out, as there has not been widespread deployment of it in syslog
@@ -3819,7 +3819,7 @@ then running the script results in
38193819
WARNING:demo:division by zero
38203820
38213821
As you can see, this output isn't ideal. That's because the underlying code
3822-
which writes to ``sys.stderr`` makes mutiple writes, each of which results in a
3822+
which writes to ``sys.stderr`` makes multiple writes, each of which results in a
38233823
separate logged line (for example, the last three lines above). To get around
38243824
this problem, you need to buffer things and only output log lines when newlines
38253825
are seen. Let's use a slghtly better implementation of ``LoggerWriter``:

Doc/library/sqlite3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2207,7 +2207,7 @@ This section shows recipes for common adapters and converters.
22072207
assert convert_datetime(b"2019-05-18T15:17:08.123456") == dt
22082208

22092209
# Using current time as fromtimestamp() returns local date/time.
2210-
# Droping microseconds as adapt_datetime_epoch truncates fractional second part.
2210+
# Dropping microseconds as adapt_datetime_epoch truncates fractional second part.
22112211
now = datetime.datetime.now().replace(microsecond=0)
22122212
current_timestamp = int(now.timestamp())
22132213

Doc/library/struct.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ In such cases, the ``@`` format character should be used to specify
462462
native byte ordering and data sizes. Internal pad bytes are normally inserted
463463
automatically. It is possible that a zero-repeat format code will be
464464
needed at the end of a format string to round up to the correct
465-
byte boundary for proper alignment of consective chunks of data.
465+
byte boundary for proper alignment of consecutive chunks of data.
466466

467467
Consider these two simple examples (on a 64-bit, little-endian
468468
machine)::

0 commit comments

Comments
 (0)