# HG changeset patch # Parent 203407036e4617e8f6f9d094caef4ae46441392a diff --git a/Lib/smtplib.py b/Lib/smtplib.py --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -856,8 +856,9 @@ class LMTP(SMTP): authentication, but your mileage might vary.""" ehlo_msg = "lhlo" + default_port = LMTP_PORT - def __init__(self, host='', port=LMTP_PORT, local_hostname=None): + def __init__(self, host='', port=0, local_hostname=None): """Initialize a new instance.""" SMTP.__init__(self, host, port, local_hostname)