summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2015-08-11 09:00:06 +0000
committerintrigeri <intrigeri@boum.org>2015-08-11 09:00:06 +0000
commit108fdd18b0d58f9facb048db3a080dda9c49ab08 (patch)
treeda97f0c00a572c23bb5d6808a85dcea62741a134
parent7fb2e010dc9900838efefc9f2563640861959245 (diff)
Fix "defaut" typo.feature/python3
-rw-r--r--whisperBack/mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/whisperBack/mail.py b/whisperBack/mail.py
index 756285c..1947dc7 100644
--- a/whisperBack/mail.py
+++ b/whisperBack/mail.py
@@ -45,7 +45,7 @@ def send_message_tls (from_address, to_address, message, host="localhost",
@param tls_cafile Certificate authority file used to create the SSLContext
"""
- ssl_context = ssl.create_defaut_context(purpose=ssl.Purpose.SERVER_AUTH,
+ ssl_context = ssl.create_default_context(purpose=ssl.Purpose.SERVER_AUTH,
cafile=tls_cafile)
# We set a long timeout because Tor is slow
smtp = smtplib.SMTP(timeout=120, host=host, port=port)