mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
Replace boolean test with is None.
This commit is contained in:
parent
1931ca72b5
commit
f13eb55d59
6 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue