summaryrefslogtreecommitdiff
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2016-10-25 08:49:13 -0700
committerGuido van Rossum <guido@python.org>2016-10-25 08:49:13 -0700
commit16591f440d650f77c841a3245785e2423a50249f (patch)
tree0b8d6ec68796387e160c5e0c06c65ecda84ba484 /Lib/asyncore.py
parent1faf9025b5d599d66acac0f33d1500a2ff386368 (diff)
downloadcpython-git-16591f440d650f77c841a3245785e2423a50249f.tar.gz
Issue 25002: Deprecate asyncore/asynchat. Patch by Mariatta.
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 705e406813..f17b31ad40 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: