diff options
author | Raymond Hettinger <python@rcn.com> | 2002-05-31 17:49:10 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-05-31 17:49:10 (GMT) |
commit | 7fdfc2d231e4d41a5bb6dd737200d3460aa39773 (patch) | |
tree | e2c0557ac6111a6a3fc480775ba954ccc01daeb4 /Lib/smtplib.py | |
parent | 79e39bd4d0705051552740fa8dedcdc366b56725 (diff) | |
download | cpython-7fdfc2d231e4d41a5bb6dd737200d3460aa39773.zip cpython-7fdfc2d231e4d41a5bb6dd737200d3460aa39773.tar.gz cpython-7fdfc2d231e4d41a5bb6dd737200d3460aa39773.tar.bz2 |
Replace '== None' with 'is None'
Diffstat (limited to 'Lib/smtplib.py')
-rwxr-xr-x | Lib/smtplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py index bb8fd75..80e6508 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -549,7 +549,7 @@ class SMTP: elif authmethod == AUTH_PLAIN: (code, resp) = self.docmd("AUTH", AUTH_PLAIN + " " + encode_plain(user, password)) - elif authmethod == None: + elif authmethod is None: raise SMTPException("No suitable authentication method found.") if code not in [235, 503]: # 235 == 'Authentication successful' |