summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2016-10-25 18:42:51 -0700
committerGuido van Rossum <guido@python.org>2016-10-25 18:42:51 -0700
commit66078ac5d022cf68f5fcd8875649e4e6527648c8 (patch)
treeef32389d7ea56b53c4a87275b2a6bfc448303ccf
parent3dca62440cd555dd574367ec1bfec8ea47262c6b (diff)
downloadcpython-git-66078ac5d022cf68f5fcd8875649e4e6527648c8.tar.gz
Issue #25002: Back out asyncore/asynchat deprecation.
-rw-r--r--Lib/asynchat.py5
-rw-r--r--Lib/asyncore.py4
2 files changed, 0 insertions, 9 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py
index fede592126..fc1146adbb 100644
--- a/Lib/asynchat.py
+++ b/Lib/asynchat.py
@@ -46,13 +46,8 @@ method) up to the terminator, and then control will be returned to
you - by calling your self.found_terminator() method.
"""
import asyncore
-import warnings
-
from collections import deque
-warnings.warn(
- 'asynchat module is deprecated in 3.6. Use asyncio instead.',
- PendingDeprecationWarning, stacklevel=2)
class async_chat(asyncore.dispatcher):
"""This is an abstract class. You must derive from this class, and add
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index f17b31ad40..705e406813 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -60,10 +60,6 @@ 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: