From 16591f440d650f77c841a3245785e2423a50249f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 25 Oct 2016 08:49:13 -0700 Subject: Issue 25002: Deprecate asyncore/asynchat. Patch by Mariatta. --- Lib/asynchat.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Lib/asynchat.py') diff --git a/Lib/asynchat.py b/Lib/asynchat.py index fc1146adbb..fede592126 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 -- cgit v1.2.1