deprecated_module.py 438 B

123456789101112131415161718
  1. # This file is dual licensed under the terms of the Apache License, Version
  2. # 2.0, and the BSD License. See the LICENSE file in the root of this repository
  3. # for complete details.
  4. from cryptography import utils
  5. # This module exists to test `cryptography.utils.deprecated`
  6. DEPRECATED = 3
  7. utils.deprecated(
  8. DEPRECATED,
  9. __name__,
  10. "Test Deprecated Object",
  11. DeprecationWarning,
  12. name="DEPRECATED",
  13. )
  14. NOT_DEPRECATED = 12