Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 66078ac

Browse files
committed
Issue #25002: Back out asyncore/asynchat deprecation.
1 parent 3dca624 commit 66078ac

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

Lib/asynchat.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,8 @@
4646
you - by calling your self.found_terminator() method.
4747
"""
4848
import asyncore
49-
import warnings
50-
5149
from collections import deque
5250

53-
warnings.warn(
54-
'asynchat module is deprecated in 3.6. Use asyncio instead.',
55-
PendingDeprecationWarning, stacklevel=2)
5651

5752
class async_chat(asyncore.dispatcher):
5853
"""This is an abstract class. You must derive from this class, and add

Lib/asyncore.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@
6060
_DISCONNECTED = frozenset({ECONNRESET, ENOTCONN, ESHUTDOWN, ECONNABORTED, EPIPE,
6161
EBADF})
6262

63-
warnings.warn(
64-
'asyncore module is deprecated in 3.6. Use asyncio instead.',
65-
PendingDeprecationWarning, stacklevel=2)
66-
6763
try:
6864
socket_map
6965
except NameError:

0 commit comments

Comments
 (0)