summaryrefslogtreecommitdiff
path: root/src/OpenSSL/tsafe.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/OpenSSL/tsafe.py')
-rw-r--r--src/OpenSSL/tsafe.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/OpenSSL/tsafe.py b/src/OpenSSL/tsafe.py
index 1cc0d2b..f1c6f67 100644
--- a/src/OpenSSL/tsafe.py
+++ b/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)