diff options
author | Samuel Colvin <samcolvin@gmail.com> | 2019-10-12 17:24:26 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-10-12 17:24:26 (GMT) |
commit | 822922af90f389b20166f0cd6f5b7c76fd6d42d9 (patch) | |
tree | 86639ed61d6bb09f4a3d792dac765ee5003379f4 /Lib/smtpd.py | |
parent | 19a3d873005e5730eeabdc394c961e93f2ec02f0 (diff) | |
download | cpython-822922af90f389b20166f0cd6f5b7c76fd6d42d9.zip cpython-822922af90f389b20166f0cd6f5b7c76fd6d42d9.tar.gz cpython-822922af90f389b20166f0cd6f5b7c76fd6d42d9.tar.bz2 |
bpo-35800: Deprecate smtpd.MailmanProxy (GH-11675)
Since `smtpd.MailmanProxy` is already broken, it is not formally deprecated in 3.9. It will be removed in 3.10.
https://bugs.python.org/issue35800
Diffstat (limited to 'Lib/smtpd.py')
-rwxr-xr-x | Lib/smtpd.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/smtpd.py b/Lib/smtpd.py index 8103ca9..8f1a22e 100755 --- a/Lib/smtpd.py +++ b/Lib/smtpd.py @@ -779,6 +779,8 @@ class PureProxy(SMTPServer): class MailmanProxy(PureProxy): def __init__(self, *args, **kwargs): + warn('MailmanProxy is deprecated and will be removed ' + 'in future', DeprecationWarning, 2) if 'enable_SMTPUTF8' in kwargs and kwargs['enable_SMTPUTF8']: raise ValueError("MailmanProxy does not support SMTPUTF8.") super(PureProxy, self).__init__(*args, **kwargs) |