Skip to content

Commit e0a5936

Browse files
OTheDevmiss-islington
authored andcommitted
pythonGH-101777: queue.rst: use 2 spaces after a period to be consistent. (pythonGH-102143)
(cherry picked from commit 96bf243) Co-authored-by: Owain Davies <[email protected]>
1 parent ddb65c4 commit e0a5936

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Doc/library/queue.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module implements all the required locking semantics.
1515

1616
The module implements three types of queue, which differ only in the order in
1717
which the entries are retrieved. In a :abbr:`FIFO (first-in, first-out)`
18-
queue, the first tasks added are the first retrieved. In a
18+
queue, the first tasks added are the first retrieved. In a
1919
:abbr:`LIFO (last-in, first-out)` queue, the most recently added entry is
2020
the first retrieved (operating like a stack). With a priority queue,
2121
the entries are kept sorted (using the :mod:`heapq` module) and the
@@ -57,7 +57,7 @@ The :mod:`queue` module defines the following classes and exceptions:
5757
*maxsize* is less than or equal to zero, the queue size is infinite.
5858

5959
The lowest valued entries are retrieved first (the lowest valued entry is the
60-
one that would be returned by ``min(entries)``). A typical pattern for
60+
one that would be returned by ``min(entries)``). A typical pattern for
6161
entries is a tuple in the form: ``(priority_number, data)``.
6262

6363
If the *data* elements are not comparable, the data can be wrapped in a class
@@ -127,8 +127,8 @@ provide the public methods described below.
127127

128128
.. method:: Queue.put(item, block=True, timeout=None)
129129

130-
Put *item* into the queue. If optional args *block* is true and *timeout* is
131-
``None`` (the default), block if necessary until a free slot is available. If
130+
Put *item* into the queue. If optional args *block* is true and *timeout* is
131+
``None`` (the default), block if necessary until a free slot is available. If
132132
*timeout* is a positive number, it blocks at most *timeout* seconds and raises
133133
the :exc:`Full` exception if no free slot was available within that time.
134134
Otherwise (*block* is false), put an item on the queue if a free slot is
@@ -143,7 +143,7 @@ provide the public methods described below.
143143

144144
.. method:: Queue.get(block=True, timeout=None)
145145

146-
Remove and return an item from the queue. If optional args *block* is true and
146+
Remove and return an item from the queue. If optional args *block* is true and
147147
*timeout* is ``None`` (the default), block if necessary until an item is available.
148148
If *timeout* is a positive number, it blocks at most *timeout* seconds and
149149
raises the :exc:`Empty` exception if no item was available within that time.
@@ -152,7 +152,7 @@ provide the public methods described below.
152152

153153
Prior to 3.0 on POSIX systems, and for all versions on Windows, if
154154
*block* is true and *timeout* is ``None``, this operation goes into
155-
an uninterruptible wait on an underlying lock. This means that no exceptions
155+
an uninterruptible wait on an underlying lock. This means that no exceptions
156156
can occur, and in particular a SIGINT will not trigger a :exc:`KeyboardInterrupt`.
157157

158158

@@ -184,7 +184,7 @@ fully processed by daemon consumer threads.
184184

185185
The count of unfinished tasks goes up whenever an item is added to the queue.
186186
The count goes down whenever a consumer thread calls :meth:`task_done` to
187-
indicate that the item was retrieved and all work on it is complete. When the
187+
indicate that the item was retrieved and all work on it is complete. When the
188188
count of unfinished tasks drops to zero, :meth:`join` unblocks.
189189

190190

@@ -227,7 +227,7 @@ SimpleQueue Objects
227227

228228
.. method:: SimpleQueue.empty()
229229

230-
Return ``True`` if the queue is empty, ``False`` otherwise. If empty()
230+
Return ``True`` if the queue is empty, ``False`` otherwise. If empty()
231231
returns ``False`` it doesn't guarantee that a subsequent call to get()
232232
will not block.
233233

0 commit comments

Comments
 (0)