summaryrefslogtreecommitdiff
path: root/Lib/asyncio/queues.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-11-28 14:43:52 +0100
committerGitHub <noreply@github.com>2017-11-28 14:43:52 +0100
commit3f438a9fa0aab5a598b4c94bbc24f9d0a23d012e (patch)
treea56013ffbf9cd0c3371f3c73e35bd966b6def7f0 /Lib/asyncio/queues.py
parenta10dc3efcbba8aa7cc7d1a017f8b22fc4fa8e87c (diff)
downloadcpython-git-3f438a9fa0aab5a598b4c94bbc24f9d0a23d012e.tar.gz
asyncio: Remove asyncio/compat.py (#4606)
The asyncio/compat.py file was written to support Python < 3.5 and Python < 3.5.2. But Python 3.5 doesn't accept bugfixes anymore, only security fixes. There is no more need to backport bugfixes to Python 3.5, and so no need to have a single code base for Python 3.5, 3.6 and 3.7. Say hello (again) to "async" and "await", who became real keywords in Python 3.7 ;-)
Diffstat (limited to 'Lib/asyncio/queues.py')
-rw-r--r--Lib/asyncio/queues.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/asyncio/queues.py b/Lib/asyncio/queues.py
index 1c66d67b04..4fc681dde9 100644
--- a/Lib/asyncio/queues.py
+++ b/Lib/asyncio/queues.py
@@ -5,7 +5,6 @@ __all__ = ['Queue', 'PriorityQueue', 'LifoQueue', 'QueueFull', 'QueueEmpty']
import collections
import heapq
-from . import compat
from . import events
from . import locks
from .coroutines import coroutine
@@ -251,9 +250,3 @@ class LifoQueue(Queue):
def _get(self):
return self._queue.pop()
-
-
-if not compat.PY35:
- JoinableQueue = Queue
- """Deprecated alias for Queue."""
- __all__.append('JoinableQueue')