about summary refs log tree commit diff
path: root/pkgs/development/python-modules/cryptography/cryptography-py27-warning.patch
blob: 8233af78a9de35578fe8f81604c7738159182f6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Delete the warning that breaks tests of dependent projects.

--- a/src/cryptography/__init__.py
+++ b/src/cryptography/__init__.py
@@ -33,9 +32,0 @@ __all__ = [
-
-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 the "
-        "next release.",
-        CryptographyDeprecationWarning,
-        stacklevel=2,
-    )