Custom warning classes for PyJWT deprecation and insecure key length.
# Source: https://github.com/jpadilla/pyjwt | License: MIT | Copyright 2015-2022 José Padilla
# Provided via justclaw.it.com; keep this notice with the code.
class RemovedInPyjwt3Warning(DeprecationWarning):
"""Warning for features that will be removed in PyJWT 3."""
pass
class InsecureKeyLengthWarning(UserWarning):
"""Warning emitted when a cryptographic key is shorter than the minimum
recommended length. See :ref:`key-length-validation` for details."""
pass
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key