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

@ -77,7 +77,7 @@ import getopt
import time
import socket
import collections
from test.support.import_helper import import_module
from test.support import asyncore, asynchat
from warnings import warn
from email._header_value_parser import get_addr_spec, get_angle_addr
@ -85,9 +85,6 @@ __all__ = [
"SMTPChannel", "SMTPServer", "DebuggingServer", "PureProxy",
]
asyncore = import_module('asyncore', deprecated=True)
asynchat = import_module('asynchat', deprecated=True)
program = sys.argv[0]
__version__ = 'Python SMTP proxy version 0.3'