From a58c3d809a654bf0abf4a35d2bd934d4a2d63e67 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Sun, 26 Jul 2020 02:29:01 +0200 Subject: [PATCH] Emit the deprecation one level up the stack (#5348) Ref: https://github.com/pyca/cryptography/issues/5335#issuecomment-661880248 --- src/cryptography/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cryptography/__init__.py b/src/cryptography/__init__.py index b66650638..f128502e2 100644 --- a/src/cryptography/__init__.py +++ b/src/cryptography/__init__.py @@ -37,4 +37,5 @@ if sys.version_info[0] == 2: "it is now deprecated in cryptography, and will be removed in a " "future release.", CryptographyDeprecationWarning, + stacklevel=2, )