Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e81a773

Browse files
committed
#23464: remove JoinableQueue that was deprecated in 3.4.4.
Patch by A. Jesse Jiryu Davis.
1 parent 5646de4 commit e81a773

4 files changed

Lines changed: 7 additions & 17 deletions

File tree

Doc/library/asyncio-queue.rst

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Queues:
88
* :class:`Queue`
99
* :class:`PriorityQueue`
1010
* :class:`LifoQueue`
11-
* :class:`JoinableQueue`
1211

1312
asyncio queue API was designed to be close to classes of the :mod:`queue`
1413
module (:class:`~queue.Queue`, :class:`~queue.PriorityQueue`,
@@ -144,16 +143,6 @@ LifoQueue
144143
first.
145144

146145

147-
JoinableQueue
148-
^^^^^^^^^^^^^
149-
150-
.. class:: JoinableQueue
151-
152-
Deprecated alias for :class:`Queue`.
153-
154-
.. deprecated:: 3.4.4
155-
156-
157146
Exceptions
158147
^^^^^^^^^^
159148

Doc/whatsnew/3.5.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,10 @@ removed:
630630
3.4, and has now been removed.
631631
(Contributed by Matt Chaput in :issue:`6623`.)
632632

633+
* The JoinableQueue class in the provisional asyncio module was deprecated
634+
in 3.4.4 and is now removed (:issue:`23464`).
635+
636+
633637
Porting to Python 3.5
634638
=====================
635639

Lib/asyncio/queues.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Queues"""
22

3-
__all__ = ['Queue', 'PriorityQueue', 'LifoQueue', 'QueueFull', 'QueueEmpty',
4-
'JoinableQueue']
3+
__all__ = ['Queue', 'PriorityQueue', 'LifoQueue', 'QueueFull', 'QueueEmpty']
54

65
import collections
76
import heapq
@@ -280,7 +279,3 @@ def _put(self, item):
280279

281280
def _get(self):
282281
return self._queue.pop()
283-
284-
285-
JoinableQueue = Queue
286-
"""Deprecated alias for Queue."""

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Core and Builtins
1919
Library
2020
-------
2121

22+
- Issue #23464: Removed deprecated asyncio JoinableQueue.
23+
2224
- Issue #23529: Limit the size of decompressed data when reading from
2325
GzipFile, BZ2File or LZMAFile. This defeats denial of service attacks
2426
using compressed bombs (i.e. compressed payloads which decompress to a huge

0 commit comments

Comments
 (0)