Permalink
Browse files

Return a context from create_default_context!

  • Loading branch information...
1 parent 3118321 commit 8133a9ccd509a3f9e712c5c9cbfe0fa6bbb8e46e @mjs committed Dec 21, 2016
Showing with 5 additions and 5 deletions.
  1. +5 −5 imapclient/tls.py
View
@@ -24,11 +24,11 @@
import ssl
- def create_default_context(cafile = None, capath = None, cadata = None):
- ssl.create_default_context(purpose = ssl.Purpose.CLIENT_AUTH,
- cafile = cafile,
- capath = capath,
- cadata = cadata)
+ def create_default_context(cafile=None, capath=None, cadata=None):
+ return ssl.create_default_context(purpose=ssl.Purpose.CLIENT_AUTH,
+ cafile=cafile,
+ capath=capath,
+ cadata=cadata)
wrap_socket = lambda sock, context, host: \
context.wrap_socket(sock, server_hostname = host)

0 comments on commit 8133a9c

Please sign in to comment.