summaryrefslogtreecommitdiffstats
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index 705e406..f17b31a 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -60,6 +60,10 @@ from errno import EALREADY, EINPROGRESS, EWOULDBLOCK, ECONNRESET, EINVAL, \
_DISCONNECTED = frozenset({ECONNRESET, ENOTCONN, ESHUTDOWN, ECONNABORTED, EPIPE,
EBADF})
+warnings.warn(
+ 'asyncore module is deprecated in 3.6. Use asyncio instead.',
+ PendingDeprecationWarning, stacklevel=2)
+
try:
socket_map
except NameError: