Replace boolean test with is None.

This commit is contained in:
Raymond Hettinger 2002-06-02 00:40:05 +00:00
parent 1931ca72b5
commit f13eb55d59
6 changed files with 10 additions and 10 deletions

View file

@ -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