]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #25002: Back out asyncore/asynchat deprecation.
authorGuido van Rossum <guido@python.org>
Wed, 26 Oct 2016 01:42:51 +0000 (18:42 -0700)
committerGuido van Rossum <guido@python.org>
Wed, 26 Oct 2016 01:42:51 +0000 (18:42 -0700)
Lib/asynchat.py
Lib/asyncore.py

index fede592126b964c036c41be231cfd587ef117d6b..fc1146adbb10dc5a8a3d0853afd83bdec9ecadb4 100644 (file)
@@ -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
index f17b31ad40e487a37b4ebc3b732b2866ae571315..705e40681303259f3f976cc72de9b2974d11c695 100644 (file)
@@ -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: