summaryrefslogtreecommitdiffstats
path: root/Lib/test/mock_socket.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-11-15 23:29:17 (GMT)
committerGitHub <noreply@github.com>2021-11-15 23:29:17 (GMT)
commit9bf2cbc4c498812e14f20d86acb61c53928a5a57 (patch)
tree3967d6f8ac254b8ed51ee8ab26eb94cb593223f9 /Lib/test/mock_socket.py
parent3352834f59531dfa42dbef00ada4fb95ded2ae3a (diff)
downloadcpython-9bf2cbc4c498812e14f20d86acb61c53928a5a57.zip
cpython-9bf2cbc4c498812e14f20d86acb61c53928a5a57.tar.gz
cpython-9bf2cbc4c498812e14f20d86acb61c53928a5a57.tar.bz2
bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)
Remove the asyncore and asynchat modules, deprecated in Python 3.6: use the asyncio module instead. Remove the smtpd module, deprecated in Python 3.6: the aiosmtpd module can be used instead, it is based on asyncio. * Remove asyncore, asynchat and smtpd documentation * Remove test_asyncore, test_asynchat and test_smtpd * Rename Lib/asynchat.py to Lib/test/support/_asynchat.py * Rename Lib/asyncore.py to Lib/test/support/_asyncore.py * Rename Lib/smtpd.py to Lib/test/support/_smtpd.py * Remove DeprecationWarning from private _asyncore, _asynchat and _smtpd modules * _smtpd: remove deprecated properties
Diffstat (limited to 'Lib/test/mock_socket.py')
-rw-r--r--Lib/test/mock_socket.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/mock_socket.py b/Lib/test/mock_socket.py
index c7abddc..9788d58 100644
--- a/Lib/test/mock_socket.py
+++ b/Lib/test/mock_socket.py
@@ -1,4 +1,4 @@
-"""Mock socket module used by the smtpd and smtplib tests.
+"""Mock socket module used by the smtplib tests.
"""
# imported for _GLOBAL_DEFAULT_TIMEOUT
@@ -33,7 +33,7 @@ class MockFile:
class MockSocket:
- """Mock socket object used by smtpd and smtplib tests.
+ """Mock socket object used by smtplib tests.
"""
def __init__(self, family=None):
global _reply_data