diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-07-25 02:40:40 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-07-25 02:40:40 +0200 |
commit | eaf16abc68a09e2d976c37e34eb606f5b519f7ea (patch) | |
tree | d9440e1c79b158094e71c1238407ca5f7a7cdcfb /Lib/asyncio/queues.py | |
parent | 71080fc3518e2d3555f555340c3e93f3b108a5b8 (diff) | |
download | cpython-eaf16abc68a09e2d976c37e34eb606f5b519f7ea.tar.gz cpython-eaf16abc68a09e2d976c37e34eb606f5b519f7ea.zip |
asyncio: sync with github
* Fix ResourceWarning warnings in test_streams
* Return True from StreamReader.eof_received() to fix
http://bugs.python.org/issue24539 (but still needs a unittest).
Add StreamReader.__repr__() for easy debugging.
* remove unused imports
* Issue #234: Drop JoinableQueue on Python 3.5+
Diffstat (limited to 'Lib/asyncio/queues.py')
-rw-r--r-- | Lib/asyncio/queues.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Lib/asyncio/queues.py b/Lib/asyncio/queues.py index 3b4dc21ab86..c55dd8bbb0a 100644 --- a/Lib/asyncio/queues.py +++ b/Lib/asyncio/queues.py @@ -1,11 +1,11 @@ """Queues""" -__all__ = ['Queue', 'PriorityQueue', 'LifoQueue', 'QueueFull', 'QueueEmpty', - 'JoinableQueue'] +__all__ = ['Queue', 'PriorityQueue', 'LifoQueue', 'QueueFull', 'QueueEmpty'] import collections import heapq +from . import compat from . import events from . import futures from . import locks @@ -289,5 +289,7 @@ class LifoQueue(Queue): return self._queue.pop() -JoinableQueue = Queue -"""Deprecated alias for Queue.""" +if not compat.PY35: + JoinableQueue = Queue + """Deprecated alias for Queue.""" + __all__.append('JoinableQueue') |