diff options
| author | Guido van Rossum <guido@python.org> | 2016-10-25 15:49:48 (GMT) |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2016-10-25 15:49:48 (GMT) |
| commit | ec648f63fc1763c12eeba4ffffa3925e6cf07a0b (patch) | |
| tree | 4b1da041df11dbae7b1bf9d8dacdfedf2189e5ae /Lib/asynchat.py | |
| parent | b3e5812300987312154adf807dfdc7ebf2518b2e (diff) | |
| parent | 16591f440d650f77c841a3245785e2423a50249f (diff) | |
| download | cpython-ec648f63fc1763c12eeba4ffffa3925e6cf07a0b.zip cpython-ec648f63fc1763c12eeba4ffffa3925e6cf07a0b.tar.gz cpython-ec648f63fc1763c12eeba4ffffa3925e6cf07a0b.tar.bz2 | |
Issue 25002: Deprecate asyncore/asynchat. Patch by Mariatta. (3.6->3.7)
Diffstat (limited to 'Lib/asynchat.py')
| -rw-r--r-- | Lib/asynchat.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py index fc1146a..fede592 100644 --- a/Lib/asynchat.py +++ b/Lib/asynchat.py @@ -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 |
