summaryrefslogtreecommitdiffstats
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2016-10-25 15:49:48 (GMT)
committerGuido van Rossum <guido@python.org>2016-10-25 15:49:48 (GMT)
commitec648f63fc1763c12eeba4ffffa3925e6cf07a0b (patch)
tree4b1da041df11dbae7b1bf9d8dacdfedf2189e5ae /Lib/asyncore.py
parentb3e5812300987312154adf807dfdc7ebf2518b2e (diff)
parent16591f440d650f77c841a3245785e2423a50249f (diff)
downloadcpython-ec648f63fc1763c12eeba4ffffa3925e6cf07a0b.zip
cpython-ec648f63fc1763c12eeba4ffffa3925e6cf07a0b.tar.gz
cpython-ec648f63fc1763c12eeba4ffffa3925e6cf07a0b.tar.bz2
Issue 25002: Deprecate asyncore/asynchat. Patch by Mariatta. (3.6->3.7)
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: