From 048821406137d6aba237c6309009dbe744548208 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 26 Aug 2020 22:50:40 -0400 Subject: I'm back in black (#941) --- src/OpenSSL/SSL.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/OpenSSL/SSL.py') diff --git a/src/OpenSSL/SSL.py b/src/OpenSSL/SSL.py index d889624..bbb721c 100644 --- a/src/OpenSSL/SSL.py +++ b/src/OpenSSL/SSL.py @@ -972,7 +972,11 @@ class Context(object): """ buf = _text_to_bytes_and_warn("buf", buf) _openssl_assert( - _lib.SSL_CTX_set_session_id_context(self._context, buf, len(buf),) + _lib.SSL_CTX_set_session_id_context( + self._context, + buf, + len(buf), + ) == 1 ) @@ -1468,9 +1472,6 @@ class Context(object): class Connection(object): - """ - """ - _reverse_mapping = WeakValueDictionary() def __init__(self, context, socket=None): -- cgit v1.2.1