gh-72719: Remove asyncore and asynchat modules (#96580)

Remove modules asyncore and asynchat, which were deprecated by PEP 594.

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Nikita Sobolev 2022-11-08 18:48:58 +03:00 committed by GitHub
parent c43714fbcd
commit e56e33d271
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 32 additions and 1762 deletions

View file

@ -47,6 +47,7 @@ from test.support import os_helper
from test.support import socket_helper
from test.support import threading_helper
from test.support import warnings_helper
from test.support import asyncore
from test.support.logging_helper import TestHandler
import textwrap
import threading
@ -64,9 +65,6 @@ from socketserver import (ThreadingUDPServer, DatagramRequestHandler,
with warnings.catch_warnings():
from . import smtpd
asyncore = warnings_helper.import_deprecated('asyncore')
try:
import win32evtlog, win32evtlogutil, pywintypes
except ImportError: