mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue 25002: Deprecate asyncore/asynchat. Patch by Mariatta.
This commit is contained in:
parent
1faf9025b5
commit
16591f440d
4 changed files with 15 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue