summaryrefslogtreecommitdiffstats
path: root/Lib/smtplib.py
diff options
context:
space:
mode:
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 80e6508..62b19bd 100755
--- a/Lib/smtplib.py
+++ b/Lib/smtplib.py
@@ -411,7 +411,7 @@ class SMTP:
def has_extn(self, opt):
"""Does the server support a given SMTP service extension?"""
- return self.esmtp_features.has_key(opt.lower())
+ return opt.lower() in self.esmtp_features
def help(self, args=''):
"""SMTP 'help' command.