summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-04-15 15:26:01 -0700
committerDavid Lord <davidism@gmail.com>2021-04-15 15:26:01 -0700
commit195e5f77308d5464c085ba77d247c5589afab47f (patch)
tree24233bc0c4cefdb72f4c6603f613c75649f43ae4 /src
parent05e5f04851f0e618a5ccee8296f039d3c471e7d2 (diff)
downloaditsdangerous-195e5f77308d5464c085ba77d247c5589afab47f.tar.gz
mention itsdangerous in deprecation message
Diffstat (limited to 'src')
-rw-r--r--src/itsdangerous/_json.py3
-rw-r--r--src/itsdangerous/jws.py8
-rw-r--r--src/itsdangerous/serializer.py6
3 files changed, 10 insertions, 7 deletions
diff --git a/src/itsdangerous/_json.py b/src/itsdangerous/_json.py
index d21aae7..77b8a3f 100644
--- a/src/itsdangerous/_json.py
+++ b/src/itsdangerous/_json.py
@@ -23,7 +23,8 @@ class DeprecatedJSON(ModuleType):
warnings.warn(
"Importing 'itsdangerous.json' is deprecated and will be"
- " removed in 2.1. Use Python's 'json' module instead.",
+ " removed in ItsDangerous 2.1. Use Python's 'json' module"
+ " instead.",
DeprecationWarning,
stacklevel=2,
)
diff --git a/src/itsdangerous/jws.py b/src/itsdangerous/jws.py
index 4ca6877..2353a30 100644
--- a/src/itsdangerous/jws.py
+++ b/src/itsdangerous/jws.py
@@ -25,7 +25,8 @@ class JSONWebSignatureSerializer(Serializer):
supports the JWS Compact Serialization.
.. deprecated:: 2.0
- Use a dedicated library such as authlib.
+ Will be removed in ItsDangerous 2.1. Use a dedicated library
+ such as authlib.
"""
jws_algorithms = {
@@ -51,8 +52,9 @@ class JSONWebSignatureSerializer(Serializer):
algorithm_name=None,
):
warnings.warn(
- "JWS support is deprecated and will be removed in 2.1. Use"
- " a dedicated JWS/JWT library such as authlib.",
+ "JWS support is deprecated and will be removed in"
+ " ItsDangerous 2.1. Use a dedicated JWS/JWT library such as"
+ " authlib.",
DeprecationWarning,
stacklevel=2,
)
diff --git a/src/itsdangerous/serializer.py b/src/itsdangerous/serializer.py
index 998ae90..12b7b26 100644
--- a/src/itsdangerous/serializer.py
+++ b/src/itsdangerous/serializer.py
@@ -56,15 +56,15 @@ class Serializer:
``(signer, signer_kwargs)``. Defaults to
:attr:`default_fallback_signers`.
- .. versionchanged:: 2.0.0
+ .. versionchanged:: 2.0
Added support for key rotation by passing a list to
``secret_key``.
- .. versionchanged:: 2.0.0
+ .. versionchanged:: 2.0
Removed the default SHA-512 fallback signer from
``default_fallback_signers``.
- .. versionchanged:: 1.1.0
+ .. versionchanged:: 1.1
Added support for ``fallback_signers`` and configured a default
SHA-512 fallback. This fallback is for users who used the yanked
1.0.0 release which defaulted to SHA-512.