summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/selector_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-11-28 14:19:56 (GMT)
committerGitHub <noreply@github.com>2017-11-28 14:19:56 (GMT)
commit4271dfd7815c05fd39b515c240050b3585bdfcd4 (patch)
tree5e75da00e258d1381d4ed12b6f934b436999eecc /Lib/asyncio/selector_events.py
parent3f438a9fa0aab5a598b4c94bbc24f9d0a23d012e (diff)
downloadcpython-4271dfd7815c05fd39b515c240050b3585bdfcd4.zip
cpython-4271dfd7815c05fd39b515c240050b3585bdfcd4.tar.gz
cpython-4271dfd7815c05fd39b515c240050b3585bdfcd4.tar.bz2
bpo-32154: Remove asyncio.selectors (#4605)
* Remove asyncio.selectors and asyncio._overlapped symbols from the namespace of the asyncio module * Replace "from asyncio import selectors" with "import selectors" * Replace "from asyncio import _overlapped" with "import _overlapped" asyncio.selectors was added to support Python 3.3, which doesn't have selectors in its standard library, and Python 3.4 in the same code base. Same rationale for asyncio._overlapped. Python 3.3 reached its end of life, and asyncio is no more maintained as a third party module on PyPI.
Diffstat (limited to 'Lib/asyncio/selector_events.py')
-rw-r--r--Lib/asyncio/selector_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py
index ef6f0ac..3639466 100644
--- a/Lib/asyncio/selector_events.py
+++ b/Lib/asyncio/selector_events.py
@@ -9,6 +9,7 @@ __all__ = ['BaseSelectorEventLoop']
import collections
import errno
import functools
+import selectors
import socket
import warnings
import weakref
@@ -21,7 +22,6 @@ from . import base_events
from . import constants
from . import events
from . import futures
-from . import selectors
from . import transports
from . import sslproto
from .coroutines import coroutine