diff options
author | Guido van Rossum <guido@python.org> | 2016-10-25 08:49:13 -0700 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2016-10-25 08:49:13 -0700 |
commit | 16591f440d650f77c841a3245785e2423a50249f (patch) | |
tree | 0b8d6ec68796387e160c5e0c06c65ecda84ba484 /Lib/asyncore.py | |
parent | Issue #27275: Fixed implementation of pop() and popitem() methods in (diff) | |
download | cpython-16591f440d650f77c841a3245785e2423a50249f.tar.gz cpython-16591f440d650f77c841a3245785e2423a50249f.tar.bz2 cpython-16591f440d650f77c841a3245785e2423a50249f.zip |
Issue 25002: Deprecate asyncore/asynchat. Patch by Mariatta.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r-- | Lib/asyncore.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py index 705e4068130..f17b31ad40e 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -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: |