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

7 statements  

« prev     ^ index     » next       coverage.py v7.2.2, created at 2023-03-26 06:36 +0000

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 

5import sys 

6import warnings 

7 

8from cryptography.__about__ import __author__, __copyright__, __version__ 

9from cryptography.utils import CryptographyDeprecationWarning 

10 

11__all__ = [ 

12 "__version__", 

13 "__author__", 

14 "__copyright__", 

15] 

16 

17if sys.version_info[:2] == (3, 6): 

18 warnings.warn( 

19 "Python 3.6 is no longer supported by the Python core team. " 

20 "Therefore, support for it is deprecated in cryptography. The next " 

21 "release of cryptography will remove support for Python 3.6.", 

22 CryptographyDeprecationWarning, 

23 stacklevel=2, 

24 )