master
/ miniconda3 / pkgs / cryptography-39.0.1-py311h9ce1e76_2 / info / test / tests / deprecated_module.py

deprecated_module.py @a663dc1 raw · history · blame

# This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.

from cryptography import utils

# This module exists to test `cryptography.utils.deprecated`

DEPRECATED = 3
utils.deprecated(
    DEPRECATED,
    __name__,
    "Test Deprecated Object",
    DeprecationWarning,
    name="DEPRECATED",
)

NOT_DEPRECATED = 12