mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Deprecate support for Python 2 (#5251)
This commit is contained in:
parent
1fcd120c32
commit
eceea9d912
2 changed files with 16 additions and 0 deletions
|
|
@ -14,6 +14,10 @@ Changelog
|
|||
as per our deprecation policy.
|
||||
* **BACKWARDS INCOMPATIBLE:** Support for LibreSSL 2.7.x, 2.8.x, and 2.9.0 has
|
||||
been removed (2.9.1+ is still supported).
|
||||
* Deprecated support for Python 2. At the time there is no time table for
|
||||
actually dropping support, however we strongly encourage all users to upgrade
|
||||
their Python, as Python 2 no longer receives support from the Python core
|
||||
team.
|
||||
|
||||
.. _v2-9-2:
|
||||
|
||||
|
|
|
|||
|
|
@ -4,13 +4,25 @@
|
|||
|
||||
from __future__ import absolute_import, division, print_function
|
||||
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
from cryptography.__about__ import (
|
||||
__author__, __copyright__, __email__, __license__, __summary__, __title__,
|
||||
__uri__, __version__
|
||||
)
|
||||
from cryptography.utils import CryptographyDeprecationWarning
|
||||
|
||||
|
||||
__all__ = [
|
||||
"__title__", "__summary__", "__uri__", "__version__", "__author__",
|
||||
"__email__", "__license__", "__copyright__",
|
||||
]
|
||||
|
||||
if sys.version_info[0] == 2:
|
||||
warnings.warn(
|
||||
"Python 2 is no longer supported by the Python core team. Support for "
|
||||
"it is now deprecated in cryptography, and will be removed in a "
|
||||
"future release.",
|
||||
CryptographyDeprecationWarning
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue