Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #655 -- deprecate OpenSSL.tsafe #673

Merged
merged 2 commits into from
Jul 22, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fixes #655 -- deprecate OpenSSL.tsafe
  • Loading branch information
alex authored Jul 21, 2017
commit 5e4cf259def7caf7e0a2c3c953277e8e66536e95
7 changes: 7 additions & 0 deletions src/OpenSSL/tsafe.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import warnings
from threading import RLock as _RLock

from OpenSSL import SSL as _ssl


warnings.warn(
"OpenSSL.tsafe is deprecated and will be removed",
DeprecationWarning, stacklevel=3
)


class Connection:
def __init__(self, *args):
self._ssl_conn = _ssl.Connection(*args)
Expand Down