mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -46,8 +46,13 @@ 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue