Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/cryptography/__init__.py: 78%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

9 statements  

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 

5from __future__ import annotations 

6 

7import sys 

8import warnings 

9 

10from cryptography import utils 

11from cryptography.__about__ import __author__, __copyright__, __version__ 

12 

13__all__ = [ 

14 "__author__", 

15 "__copyright__", 

16 "__version__", 

17] 

18 

19if sys.version_info[:2] == (3, 7): 

20 warnings.warn( 

21 "Python 3.7 is no longer supported by the Python core team " 

22 "and support for it is deprecated in cryptography. The next release " 

23 "of cryptography will remove support for Python 3.7.", 

24 utils.CryptographyDeprecationWarning, 

25 stacklevel=2, 

26 )