Revert "bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)" (GH-29951)

This reverts commit 9bf2cbc4c4.
This commit is contained in:
Victor Stinner 2021-12-07 12:31:04 +01:00 committed by GitHub
parent 2bf551757e
commit cf7eaa4617
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 3228 additions and 34 deletions

View file

@ -4,7 +4,6 @@ import sys
import unittest
import unittest.mock
from test import support
from test.support import _asyncore as asyncore
from test.support import import_helper
from test.support import os_helper
from test.support import socket_helper
@ -31,6 +30,10 @@ try:
except ImportError:
ctypes = None
import warnings
with warnings.catch_warnings():
warnings.simplefilter('ignore', DeprecationWarning)
import asyncore
ssl = import_helper.import_module("ssl")
import _ssl