Skip to content

Commit bbddd8a

Browse files
committed
Fix docs nits
1 parent 3582862 commit bbddd8a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Doc/library/mailbox.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF.
7878
message. Failing to lock the mailbox runs the risk of losing messages or
7979
corrupting the entire mailbox.
8080

81-
The :class:`Mailbox` class supports the :keyword:`with` statement. When used
82-
as a context manager, :class:`!Mailbox` calls :meth:`lock` when the context is entered,
83-
returns the mailbox object as the context object, and at context end calls :meth:`close`,
84-
thereby releasing the lock.
81+
The :class:`!Mailbox` class supports the :keyword:`with` statement. When used
82+
as a context manager, :class:`!Mailbox` calls :meth:`lock` when the context is entered,
83+
returns the mailbox object as the context object, and at context end calls :meth:`close`,
84+
thereby releasing the lock.
8585

8686
.. versionchanged:: next
8787
Support for the :keyword:`with` statement was added.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
:mod:`Mailbox` instances can now be used as a context manager. The Mailbox is locked on context entry and unlocked and closed at context exit.
1+
:class:`mailbox.Mailbox` instances can now be used as a context manager.
2+
The Mailbox is locked on context entry and unlocked and closed at context exit.

0 commit comments

Comments
 (0)