diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2020-05-23 03:50:58 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-22 17:50:58 -0700 |
| commit | da51ba442c7bf717872633676207c1ae10e99c99 (patch) | |
| tree | 5ef52f91f48dddfcc9fff62475824549661da90c /Lib/smtplib.py | |
| parent | 6fad3e6b49f6a9f8b8a6635c41371e4451479f86 (diff) | |
| download | cpython-git-da51ba442c7bf717872633676207c1ae10e99c99.tar.gz | |
Cosmetic smtplib changes (GH-8718)
Some cosmetic smtplib changes here. Let me know if you'd like a bpo/news entry or splitting this PR into two.
Automerge-Triggered-By: @maxking
Diffstat (limited to 'Lib/smtplib.py')
| -rwxr-xr-x | Lib/smtplib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py index 7808ba01cb..e2dbbbcf2e 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -222,7 +222,7 @@ class SMTP: helo_resp = None ehlo_msg = "ehlo" ehlo_resp = None - does_esmtp = 0 + does_esmtp = False default_port = SMTP_PORT def __init__(self, host='', port=0, local_hostname=None, @@ -452,7 +452,7 @@ class SMTP: self.ehlo_resp = msg if code != 250: return (code, msg) - self.does_esmtp = 1 + self.does_esmtp = True #parse the ehlo response -ddm assert isinstance(self.ehlo_resp, bytes), repr(self.ehlo_resp) resp = self.ehlo_resp.decode("latin-1").split('\n') @@ -781,7 +781,7 @@ class SMTP: self.helo_resp = None self.ehlo_resp = None self.esmtp_features = {} - self.does_esmtp = 0 + self.does_esmtp = False else: # RFC 3207: # 501 Syntax error (no parameters allowed) |
