Skip to content

Commit c62d573

Browse files
hugovkkoyuki7wskirpichev
authored
[3.12] gh-101100: Docs: Fix some typos in the document (GH-129988) (#129998)
Co-authored-by: Yuki Kobayashi <[email protected]> Co-authored-by: Sergey B Kirpichev <[email protected]>
1 parent 181e924 commit c62d573

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

Doc/c-api/init.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ Process-wide parameters
492492
interpreter will change the contents of this storage.
493493
494494
Use :c:func:`Py_DecodeLocale` to decode a bytes string to get a
495-
:c:expr:`wchar_t *` string.
495+
:c:expr:`wchar_t*` string.
496496
497497
.. deprecated:: 3.11
498498
@@ -758,7 +758,7 @@ Process-wide parameters
758758
directory (``"."``).
759759

760760
Use :c:func:`Py_DecodeLocale` to decode a bytes string to get a
761-
:c:expr:`wchar_*` string.
761+
:c:expr:`wchar_t*` string.
762762

763763
See also :c:member:`PyConfig.orig_argv` and :c:member:`PyConfig.argv`
764764
members of the :ref:`Python Initialization Configuration <init-config>`.
@@ -794,7 +794,7 @@ Process-wide parameters
794794
:option:`-I`.
795795
796796
Use :c:func:`Py_DecodeLocale` to decode a bytes string to get a
797-
:c:expr:`wchar_*` string.
797+
:c:expr:`wchar_t*` string.
798798
799799
See also :c:member:`PyConfig.orig_argv` and :c:member:`PyConfig.argv`
800800
members of the :ref:`Python Initialization Configuration <init-config>`.
@@ -820,7 +820,7 @@ Process-wide parameters
820820
this storage.
821821
822822
Use :c:func:`Py_DecodeLocale` to decode a bytes string to get a
823-
:c:expr:`wchar_*` string.
823+
:c:expr:`wchar_t*` string.
824824
825825
.. deprecated:: 3.11
826826

Doc/library/dbm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ The :mod:`!dbm.dumb` module defines the following:
393393
.. method:: dumbdbm.sync()
394394

395395
Synchronize the on-disk directory and data files. This method is called
396-
by the :meth:`Shelve.sync` method.
396+
by the :meth:`shelve.Shelf.sync` method.
397397

398398
.. method:: dumbdbm.close()
399399

Doc/library/plistlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ This module defines the following functions:
9090

9191
.. function:: dump(value, fp, *, fmt=FMT_XML, sort_keys=True, skipkeys=False)
9292

93-
Write *value* to a plist file. *Fp* should be a writable, binary
93+
Write *value* to a plist file. *fp* should be a writable, binary
9494
file object.
9595

9696
The *fmt* argument specifies the format of the plist file and can be

Doc/library/smtplib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ An :class:`SMTP` instance has the following methods:
524524
:mailheader:`Bcc` or :mailheader:`Resent-Bcc` headers that may appear
525525
in *msg*. If any of the addresses in *from_addr* and *to_addrs* contain
526526
non-ASCII characters and the server does not advertise ``SMTPUTF8`` support,
527-
an :exc:`SMTPNotSupported` error is raised. Otherwise the ``Message`` is
527+
an :exc:`SMTPNotSupportedError` is raised. Otherwise the ``Message`` is
528528
serialized with a clone of its :mod:`~email.policy` with the
529529
:attr:`~email.policy.EmailPolicy.utf8` attribute set to ``True``, and
530530
``SMTPUTF8`` and ``BODY=8BITMIME`` are added to *mail_options*.

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ Doc/library/cgi.rst
2424
Doc/library/chunk.rst
2525
Doc/library/collections.rst
2626
Doc/library/copy.rst
27-
Doc/library/dbm.rst
2827
Doc/library/decimal.rst
2928
Doc/library/email.charset.rst
3029
Doc/library/email.compat32-message.rst

0 commit comments

Comments
 (0)