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

7 statements  

« prev     ^ index     » next       coverage.py v7.0.1, created at 2022-12-25 06:11 +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 ( 

9 __author__, 

10 __copyright__, 

11 __version__, 

12) 

13from cryptography.utils import CryptographyDeprecationWarning 

14 

15 

16__all__ = [ 

17 "__version__", 

18 "__author__", 

19 "__copyright__", 

20] 

21 

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

23 warnings.warn( 

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

25 "Therefore, support for it is deprecated in cryptography and will be" 

26 " removed in a future release.", 

27 CryptographyDeprecationWarning, 

28 stacklevel=2, 

29 )