Skip to content

Commit

Permalink
Fixes #655 -- deprecate OpenSSL.tsafe (#673)
Browse files Browse the repository at this point in the history
* Fixes #655 -- deprecate OpenSSL.tsafe

* changelog
  • Loading branch information
alex authored and reaperhulk committed Jul 22, 2017
1 parent a723ba2 commit a079213
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.rst
Expand Up @@ -18,8 +18,8 @@ Backward-incompatible changes:
Deprecations:
^^^^^^^^^^^^^

*none*

- Deprecated ``OpenSSL.tsafe``.
`#673 <https://github.com/pyca/pyopenssl/pull/673>`_

Changes:
^^^^^^^^
Expand Down
7 changes: 7 additions & 0 deletions src/OpenSSL/tsafe.py
@@ -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

0 comments on commit a079213

Please sign in to comment.