Kaydet (Commit) 66078ac5 authored tarafından Guido van Rossum's avatar Guido van Rossum

Issue #25002: Back out asyncore/asynchat deprecation.

üst 3dca6244
......@@ -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
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment