summaryrefslogtreecommitdiffstats
path: root/Lib/smtplib.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-02 00:40:05 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-06-02 00:40:05 (GMT)
commitf13eb55d59d80907c9f86574ddd23bce2cb41ff3 (patch)
tree799ffe8a95c5cacd946f186f3022f380b418141d /Lib/smtplib.py
parent1931ca72b5769ee686776617e2d97d839cc7d2d6 (diff)
downloadcpython-f13eb55d59d80907c9f86574ddd23bce2cb41ff3.zip
cpython-f13eb55d59d80907c9f86574ddd23bce2cb41ff3.tar.gz
cpython-f13eb55d59d80907c9f86574ddd23bce2cb41ff3.tar.bz2
Replace boolean test with is None.
Diffstat (limited to 'Lib/smtplib.py')
-rwxr-xr-xLib/smtplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py
index 62b19bd..4311d1a 100755
--- a/Lib/smtplib.py
+++ b/Lib/smtplib.py
@@ -236,7 +236,7 @@ class SMTP:
(code, msg) = self.connect(host, port)
if code != 220:
raise SMTPConnectError(code, msg)
- if local_hostname:
+ if local_hostname is not None:
self.local_hostname = local_hostname
else:
# RFC 2821 says we should use the fqdn in the EHLO/HELO verb, and